diff options
author | Ken Moore <ken@ixsystems.com> | 2016-10-18 11:31:26 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-10-18 11:31:26 -0400 |
commit | 8410e57781d0e28145a1293d82eb45ad0b286e49 (patch) | |
tree | 24e2aa1015e4555d5c6b8baa0134ad866bc56907 /src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp | |
parent | Make sure the desktop are registered as virtual roots again. (diff) | |
download | lumina-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.cpp | 3 |
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; |