aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-05-21 12:17:52 -0400
committerGitHub <noreply@github.com>2018-05-21 12:17:52 -0400
commit238cb47dc1b3da80112ebc1abcd8a78b0c47d32e (patch)
treea254c8779075fd4c7d6e98d9afbbfbbdabc456c6 /src-qt5/desktop-utils
parentMerge pull request #583 from rodlie/slackware (diff)
parentlumina-fm: fix #549 . Don't run currentDirectoryChanged on empty dir. (diff)
downloadlumina-238cb47dc1b3da80112ebc1abcd8a78b0c47d32e.tar.gz
lumina-238cb47dc1b3da80112ebc1abcd8a78b0c47d32e.tar.bz2
lumina-238cb47dc1b3da80112ebc1abcd8a78b0c47d32e.zip
Merge pull request #581 from rodlie/549
lumina-fm: fix #549 . Don't run currentDirectoryChanged on empty dir.
Diffstat (limited to 'src-qt5/desktop-utils')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
index 0f11dc3d..a35a29a5 100644
--- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
@@ -663,6 +663,7 @@ void DirWidget::UpdateContextMenu(){
void DirWidget::currentDirectoryChanged(QString cur, bool widgetonly){
//qDebug() << "Got current directory changed:" << cur << widgetonly;
+ if (cur.isEmpty()) { return; }
QFileInfo info(cur);
canmodify = info.isWritable();
if(widgetonly){ ui->label_status->setText(currentBrowser()->status()); }
bgstack15