aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils
diff options
context:
space:
mode:
authorOle-André Rodlie <ole.andre.rodlie@gmail.com>2018-05-07 19:07:54 +0200
committerOle-André Rodlie <ole.andre.rodlie@gmail.com>2018-05-07 19:07:54 +0200
commit4732137f6b09d74ab983f7f30d63e81a0daf7bbf (patch)
tree0466ac5c0edcbf32f95bf41430da5a425d26d8c7 /src-qt5/desktop-utils
parentFix the view-presentation icon in lumina-pdf (diff)
downloadlumina-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/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