[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Review Request 129118: Remove discovery associated to a key when removing a definition
From:       Antonio Larrosa Jimenez <larrosa () kde ! org>
Date:       2016-10-07 17:03:36
Message-ID: 20161007170336.11463.6910 () mimi ! kde ! org
[Download RAW message or body]

--===============2226943012436375296==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/129118/
-----------------------------------------------------------

(Updated Oct. 7, 2016, 5:03 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDE Frameworks and Plasma.


Repository: kpackage


Description
-------

Plasmashell was calling Package::removeDefinition but a later call to
Package::filePath still returned a value because there was an entry in
d->discoveries but no way to remove it, which made plasma use old
values.


Diffs
-----

  src/kpackage/package.cpp 363a67ed5b7c592aea4845b84ca05e63da05991a 

Diff: https://git.reviewboard.kde.org/r/129118/diff/


Testing
-------

I gdb'd a patched plasmashell (1) to fix a wallpaper aspect ratio problem
while changing the screen resolution between 1024x768 and 1280x720
and tracing Image::findPreferedImageInPackage . 

package.filePath("preferred") is not empty at the beginning of the method
even if package.removeDefinition("preferred") was just called, so it seems
the key should be removed from d->discoveries too.

(1) The plasma patch is at https://phabricator.kde.org/D2981


Thanks,

Antonio Larrosa Jimenez


--===============2226943012436375296==
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit




<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 \
solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">  \
<tr>  <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://git.reviewboard.kde.org/r/129118/">https://git.reviewboard.kde.org/r/129118/</a>
  </td>
    </tr>
   </table>
   <br />



<table bgcolor="#e0e0e0" width="100%" cellpadding="12" style="border: 1px gray solid; \
border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">  <tr>
  <td>
   <h1 style="margin: 0; padding: 0; font-size: 10pt;">This change has been marked as \
submitted.</h1>  </td>
 </tr>
</table>
<br />


<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: \
1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; \
-webkit-border-radius: 6px;">  <tr>
  <td>

<div>Review request for KDE Frameworks and Plasma.</div>
<div>By Antonio Larrosa Jimenez.</div>


<p style="color: grey;"><i>Updated Oct. 7, 2016, 5:03 p.m.</i></p>









<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt;">Repository: </b>
kpackage
</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">Plasmashell was calling Package::removeDefinition but \
a later call to Package::filePath still returned a value because there was an entry \
in d-&gt;discoveries but no way to remove it, which made plasma use old
values.</p></pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">I gdb'd a patched plasmashell (1) to fix a wallpaper \
aspect ratio problem while changing the screen resolution between 1024x768 and \
1280x720 and tracing Image::findPreferedImageInPackage . </p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">package.filePath("preferred") is not empty at the \
beginning of the method even if package.removeDefinition("preferred") was just \
called, so it seems the key should be removed from d-&gt;discoveries too.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: \
inherit;white-space: inherit;">(1) The plasma patch is at \
https://phabricator.kde.org/D2981</p></pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>src/kpackage/package.cpp <span style="color: \
grey">(363a67ed5b7c592aea4845b84ca05e63da05991a)</span></li>

</ul>

<p><a href="https://git.reviewboard.kde.org/r/129118/diff/" style="margin-left: \
3em;">View Diff</a></p>






  </td>
 </tr>
</table>



  </div>
 </body>
</html>


--===============2226943012436375296==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic