Skip to content

Commit b6c50b2

Browse files
committed
default playlist media type searches off
All off = all on, but I think people will more often prefer to view only X instead of all minus X. So, this should be more convenient.
1 parent ff91047 commit b6c50b2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/docks/playlistdock.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,7 @@ class PlaylistProxyModel : public QSortFilterProxyModel
370370
}
371371

372372
private:
373-
QList<PlaylistModel::MediaType> m_mediaTypes {
374-
PlaylistModel::Video, PlaylistModel::Audio, PlaylistModel::Image, PlaylistModel::Other};
373+
QList<PlaylistModel::MediaType> m_mediaTypes;
375374
QString m_bin;
376375
enum PlaylistDock::SmartBin m_smartBin { PlaylistDock::SmartBinNone };
377376
std::vector<std::function<bool(int row, const QModelIndex &index)>> m_functors;
@@ -1118,28 +1117,24 @@ void PlaylistDock::setupActions()
11181117
action = new QAction(tr("Video"), this);
11191118
action->setToolTip(tr("Show or hide video files"));
11201119
action->setCheckable(true);
1121-
action->setChecked(true);
11221120
connect(action, &QAction::triggered, this, &PlaylistDock::onMediaTypeClicked);
11231121
Actions.add("playlistFiltersVideo", action, this->windowTitle());
11241122

11251123
action = new QAction(tr("Audio"), this);
11261124
action->setToolTip(tr("Show or hide audio files"));
11271125
action->setCheckable(true);
1128-
action->setChecked(true);
11291126
connect(action, &QAction::triggered, this, &PlaylistDock::onMediaTypeClicked);
11301127
Actions.add("playlistFiltersAudio", action, this->windowTitle());
11311128

11321129
action = new QAction(tr("Image"), this);
11331130
action->setToolTip(tr("Show or hide image files"));
11341131
action->setCheckable(true);
1135-
action->setChecked(true);
11361132
connect(action, &QAction::triggered, this, &PlaylistDock::onMediaTypeClicked);
11371133
Actions.add("playlistFiltersImage", action, this->windowTitle());
11381134

11391135
action = new QAction(tr("Other"), this);
11401136
action->setToolTip(tr("Show or hide other kinds of files"));
11411137
action->setCheckable(true);
1142-
action->setChecked(true);
11431138
connect(action, &QAction::triggered, this, &PlaylistDock::onMediaTypeClicked);
11441139
Actions.add("playlistFiltersOther", action, this->windowTitle());
11451140

0 commit comments

Comments
 (0)