<table><tr><td style="">wstephenson created this revision.<br />wstephenson added reviewers: hein, davidedmundson.<br />wstephenson added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />wstephenson 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/D27319">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The code to handle a window drag from the taskbar to drop on the<br />
Activity Pager to add the window to an Activity was broken,<br />
because the test to see if the drop location is a running activity<br />
still treated the itemId as an integer indexing into an array of running<br />
activity indices, rather than an id string that could be a member of the<br />
list of running activities.</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">
This commit fixes that logic and simplifies the no-op return logic.</pre></div></div></div><br /><div><strong>TEST PLAN</strong><div><p>0) add activity pager widget[to panel]</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">Create 2nd activity</li>
<li class="remarkup-list-item">Open a window.</li>
<li class="remarkup-list-item">Set that window via the window menu to only appear on the first activity</li>
<li class="remarkup-list-item">Check that the 2nd activity is empty</li>
<li class="remarkup-list-item">Drag the window's taskbar entry to the pager item for the 2nd activity</li>
<li class="remarkup-list-item">check that the dropped window is now also present on the 2nd activity.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27319">https://phabricator.kde.org/D27319</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/pager/plugin/pagermodel.cpp</div></div></div><br /><div><strong>To: </strong>wstephenson, hein, davidedmundson<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>