diff options
author | Ole-André Rodlie <ole.andre.rodlie@gmail.com> | 2018-05-07 19:07:54 +0200 |
---|---|---|
committer | Ole-André Rodlie <ole.andre.rodlie@gmail.com> | 2018-05-07 19:07:54 +0200 |
commit | 4732137f6b09d74ab983f7f30d63e81a0daf7bbf (patch) | |
tree | 0466ac5c0edcbf32f95bf41430da5a425d26d8c7 /src-qt5 | |
parent | Fix the view-presentation icon in lumina-pdf (diff) | |
download | lumina-4732137f6b09d74ab983f7f30d63e81a0daf7bbf.tar.gz lumina-4732137f6b09d74ab983f7f30d63e81a0daf7bbf.tar.bz2 lumina-4732137f6b09d74ab983f7f30d63e81a0daf7bbf.zip |
lumina-fm: fix #549 . Don't run currentDirectoryChanged on empty dir.
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp | 1 |
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()); } |