aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
index 1112f971..55347ca5 100644
--- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
@@ -44,7 +44,8 @@ void BrowserWidget::changeDirectory(QString dir){
if(historyList.isEmpty() || !dir.isEmpty()){ historyList << dir; }
}else{
//Need to remove the zfs snapshot first and ensure that it is not the same dir (just a diff snapshot)
- QString cleaned = dir.replace( QRegExp("/\\.zfs/snapshot/(.)+/"), "/" );
+ QString cleaned = dir;
+ cleaned = cleaned.replace( QRegExp("/\\.zfs/snapshot/(.)+/"), "/" );
if( (historyList.isEmpty() || historyList.last()!=cleaned) && !cleaned.isEmpty() ){ historyList << cleaned; }
}
qDebug() << "History:" << historyList;
bgstack15