From 118d4338a6462e0673eff36d92f3e87cc5b78696 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sun, 28 Jan 2024 10:58:01 -0800 Subject: [PATCH] fix PLaylist > Select All, Remove All disabled This occured when opening a project that has playlist items. --- src/docks/playlistdock.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/docks/playlistdock.cpp b/src/docks/playlistdock.cpp index 35778b5a13..89578bc401 100644 --- a/src/docks/playlistdock.cpp +++ b/src/docks/playlistdock.cpp @@ -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()