aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-10-18 11:31:26 -0400
committerKen Moore <ken@ixsystems.com>2016-10-18 11:31:26 -0400
commit8410e57781d0e28145a1293d82eb45ad0b286e49 (patch)
tree24e2aa1015e4555d5c6b8baa0134ad866bc56907 /src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp
parentMake sure the desktop are registered as virtual roots again. (diff)
downloadlumina-8410e57781d0e28145a1293d82eb45ad0b286e49.tar.gz
lumina-8410e57781d0e28145a1293d82eb45ad0b286e49.tar.bz2
lumina-8410e57781d0e28145a1293d82eb45ad0b286e49.zip
Fix the snapshot loading mechanism within lumina-fm.
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