From 0e0d7944883fd7aad7c8334c9d7cc636d84a0630 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 19 Jan 2019 21:51:51 +0100 Subject: Always show an existing directory When the current directory was deleted otherwhere while in CollectionFoldersView, a refresh left the user with no choice at all. Set mCurrentFolder to default (QSetting->folderdir) and say so in the status bar. For the latter add a signal to CollectionWidget and connect it to PlayerWidget::message. --- collectionwidget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'collectionwidget.h') diff --git a/collectionwidget.h b/collectionwidget.h index fe4a086..e910e57 100644 --- a/collectionwidget.h +++ b/collectionwidget.h @@ -24,6 +24,9 @@ class CollectionWidget : public QWidget { void enableSorting(int column = 0, Qt::SortOrder sortOrder = Qt::AscendingOrder); QActionGroup *customActions() { return mCustomActions; } + signals: + void message(const QString &msg); + public slots: virtual void populate() { return; } virtual void expandFirst(QSortFilterProxyModel *proxy); -- cgit v1.2.3-70-g09d2