<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> Stray spaces (No I don't have any stray spaces detector, I just clicked
here by accident)</code></pre>
</blockquote>
<pre><code> I am never so lucky, I guess I need to configurate my editor to let me know</code></pre>
<p>about those nasty little stray spaces.</p>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> + if( playlist_Status( THEPL ) == PLAYLIST_RUNNING )
+ {
+ if( isCurrent( index ) )
+ return false;
+ }
if( playlist_Status( THEPL ) == PLAYLIST_RUNNING && isCurrent( index ) )
return false;
no?</code></pre>
</blockquote>
<h3 id="see-attached-patch">See attached patch</h3>
<p>Attached to this email is an updated patch, in regards of the old on - the differences between the two are as follows.</p>
<pre><code>diff --git a/modules/gui/qt/components/playlist/playlist_model.cpp b/modules/gui/qt/components/playlist/playlist_model.cpp
index 3092895..739e722 100644
--- a/modules/gui/qt/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt/components/playlist/playlist_model.cpp
@@ -1003,7 +1003,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
bool PLModel::isSupportedAction( actions action, const QModelIndex &index ) const
{
vlc_playlist_locker pl_lock ( THEPL );
-
+
bool const b_readonly = THEPL->p_root->i_flags & PLAYLIST_RO_FLAG;
AbstractPLItem * item = VLCModel::getItem( index );
@@ -1021,17 +1021,17 @@ bool PLModel::isSupportedAction( actions action, const QModelIndex &index ) cons
}
case ACTION_SORT:
{
- return rowCount() && b_readonly;
+ return rowCount() && b_readonly;
}
case ACTION_PLAY:
{
- if( playlist_Status( THEPL ) == PLAYLIST_RUNNING )
+ if( playlist_Status( THPL ) == PLAYLIST_RUNNING
+ && !isCurrent( index ) )
{
- if( isCurrent( index ) )
- return false;
+ return false;
}
- return index.isValid();;
+ return index.isValid();
}
case ACTION_PAUSE:
{</code></pre>
<p>thanks!</p>