Skip to content

Commit

Permalink
fix PLaylist > Select All, Remove All disabled
Browse files Browse the repository at this point in the history
This occured when opening a project that has playlist items.
  • Loading branch information
ddennedy committed Jan 28, 2024
1 parent 83187df commit 118d433
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/docks/playlistdock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,9 @@ void PlaylistDock::onPlaylistCreated()
void PlaylistDock::onPlaylistLoaded()
{
onPlaylistCreated();
bool nonEmptyModel = m_model.rowCount() > 0;
Actions["playlistRemoveAllAction"]->setEnabled(nonEmptyModel);
Actions["playlistSelectAllAction"]->setEnabled(nonEmptyModel);
}

void PlaylistDock::onPlaylistModified()
Expand Down

0 comments on commit 118d433

Please sign in to comment.