<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Frameworks, leinir, ahiemstra.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />broulik requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28298">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>For some reason I couldn't entirely get behind, <tt style="background: #ebebeb; font-size: 13px;">changedEntries</tt> was signalled to change on the QML side on component creation.<br />
Even when replacing the <tt style="background: #ebebeb; font-size: 13px;">Binding</tt> by a direct binding, this wouldn't work. However, while I can't just <tt style="background: #ebebeb; font-size: 13px;">alias</tt> it, it turns out, <tt style="background: #ebebeb; font-size: 13px;">ghnsDialog</tt> already has a <tt style="background: #ebebeb; font-size: 13px;">changedEntries</tt> alias, which we can then just bind to.<br />
Furthermore, don't signal a change when clearing if it was already empty.</p>
<p>This fixes the wallpaper model in Plasma reloading in-flight, causing thumbnail generation to fail. While this is a genuine bug in the model it only started to be a problem with GHNS needlessly reloading the model.</p>
<p>BUG: 419234</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">My thumbnails show up fine again</li>
<li class="remarkup-list-item">Installing a new thumbnail still reloads the model (<tt style="background: #ebebeb; font-size: 13px;">changedEntries</tt> is signalled to change when I install something)</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R304 KNewStuff</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28298">https://phabricator.kde.org/D28298</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/qtquick/qml/Button.qml<br />
src/qtquick/quickengine.cpp</div></div></div><br /><div><strong>To: </strong>broulik, Frameworks, leinir, ahiemstra<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>