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


<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.orgrb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Amarok.</div>
<div>By Dennis Francis.</div>


<p style="color: grey;"><i>Updated 2010-11-20 14:33:49.979268</i></p>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Changes</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;">Set objectName for Playlist/Track delete Actions to &quot;deleteAction&quot;
Use objectName of actions to find out the action corresponding to delete from the QActionList.

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


<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;">This patch fixes the bug 250746 which causes a crash while using &#39;delete&#39; key to delete multiple playlists.
When multiple playlists are selected and deleted using delete key, only the first one in the selectedIndexes() gets row removed properly. 

I used an alternative route to fix the issue, by using actionsFor() method for getting the actions for the selected
indexes(selected playlists) and then triggering the last action of the returned ActionList (The last action was found to be the one corresponds to
row remove operation).

QTreeView is expanded to depth 0. This resolves &#39;delete key press&#39; version of bug 245646. Context menu version of this bug can
also be resolved in a similar way through another patch.

Further, this patch automatically fixes bug 250750 - &quot;Cancel delete of playlist initialised by &#39;Delete&#39; key not clean&quot;. Now when you press cancel,
none of the playlists are touched.</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;">Tested with different possible selection patterns using &quot;CTRL+click&quot;. Delete key press deletes only the selected playlists when confirmed, else none of
them are affected. The PlayListBrowserView maintains the same expanded state after deletion.
Things seems to work fine for me. 
</pre>
  </td>
 </tr>
</table>



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


 <a href="https://bugs.kde.org/show_bug.cgi?id=250746">250746</a>, 

 <a href="https://bugs.kde.org/show_bug.cgi?id=250750">250750</a>


</div>


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

 <li>src/browsers/playlistbrowser/PlaylistBrowserView.cpp <span style="color: grey">(2603e2f)</span></li>

 <li>src/core-impl/podcasts/sql/SqlPodcastProvider.cpp <span style="color: grey">(ae61504)</span></li>

 <li>src/playlistmanager/file/PlaylistFileProvider.cpp <span style="color: grey">(573cdff)</span></li>

 <li>src/playlistmanager/sql/SqlUserPlaylistProvider.cpp <span style="color: grey">(12da6ed)</span></li>

</ul>

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




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




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