diff options
Diffstat (limited to 'collectionfoldersview.cpp')
-rw-r--r-- | collectionfoldersview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/collectionfoldersview.cpp b/collectionfoldersview.cpp index e1a96b2..483f42c 100644 --- a/collectionfoldersview.cpp +++ b/collectionfoldersview.cpp @@ -21,6 +21,12 @@ void CollectionFoldersView::populate(){ model()->setHorizontalHeaderLabels(headers()); QStandardItem *root = model()->invisibleRootItem(); QDir d(mCurrentFolder); + if(!d.exists()){ + QString msg = QString("%1 vanished from under us!").arg(mCurrentFolder); + emit message(msg); + readSettings(); + d.setPath(mCurrentFolder); + } QMimeDatabase db; QIcon songIcon(":/song.png"); QIcon otherIcon(":/belly_right_and_clear.png"); |