From 4732137f6b09d74ab983f7f30d63e81a0daf7bbf Mon Sep 17 00:00:00 2001 From: Ole-André Rodlie Date: Mon, 7 May 2018 19:07:54 +0200 Subject: lumina-fm: fix #549 . Don't run currentDirectoryChanged on empty dir. --- src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src-qt5/desktop-utils/lumina-fm') 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()); } -- cgit