summaryrefslogtreecommitdiffstats
path: root/playerwidget.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2019-01-19 21:51:51 +0100
committerArno <arno@disconnect.de>2019-01-19 21:51:51 +0100
commit0e0d7944883fd7aad7c8334c9d7cc636d84a0630 (patch)
tree9dacedee6e7ed0f329103138901720f53f2ebff5 /playerwidget.cpp
parent0d058fda9189f6bf96c70d71ffe1d18ca433e046 (diff)
downloadBeetPlayer-0e0d7944883fd7aad7c8334c9d7cc636d84a0630.tar.gz
BeetPlayer-0e0d7944883fd7aad7c8334c9d7cc636d84a0630.tar.bz2
BeetPlayer-0e0d7944883fd7aad7c8334c9d7cc636d84a0630.zip
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.
Diffstat (limited to 'playerwidget.cpp')
-rw-r--r--playerwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/playerwidget.cpp b/playerwidget.cpp
index c9e8214..54a1f50 100644
--- a/playerwidget.cpp
+++ b/playerwidget.cpp
@@ -161,6 +161,7 @@ void PlayerWidget::setupGui(QSplashScreen *splash){
}
for(int i = 0; i < mCollectionStack->count(); ++i){
CollectionWidget *curW = qobject_cast<CollectionWidget*>(mCollectionStack->widget(i));
+ connect(curW, &CollectionWidget::message, this, &PlayerWidget::message);
const QString name = curW->objectName();
// special case webradio
if(name == "webradio"){