From c8775edd2ceff03e43f79f99997607daf8649af5 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 21 Oct 2015 13:37:28 -0400 Subject: Fix up a bug with the relative snapshot path calculation when switching between snapshots. --- lumina-fm/widgets/DirWidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lumina-fm') diff --git a/lumina-fm/widgets/DirWidget.cpp b/lumina-fm/widgets/DirWidget.cpp index 2f172337..46aa2cf3 100644 --- a/lumina-fm/widgets/DirWidget.cpp +++ b/lumina-fm/widgets/DirWidget.cpp @@ -484,6 +484,7 @@ void DirWidget::LoadDir(QString dir, QList list){ void DirWidget::LoadSnaps(QString basedir, QStringList snaps){ //Save these value internally for use later + qDebug() << "ZFS Snapshots available:" << basedir << snaps; snapbasedir = basedir; snapshots = snaps; if(!snapbasedir.isEmpty()){ watcher->addPath(snapbasedir); } //add this to the watcher in case snapshots get created/removed @@ -832,11 +833,11 @@ void DirWidget::on_slider_snap_valueChanged(int val){ emit findSnaps(ID, normalbasedir); return; } - if(snaprelpath.isEmpty()){ + //if(snaprelpath.isEmpty()){ //Need to figure out the relative path within the snapshot snaprelpath = normalbasedir.section(snapbasedir.section(ZSNAPDIR,0,0), 1,1000); if(DEBUG){ qDebug() << " - new snapshot-relative path:" << snaprelpath; } - } + //} dir.append(snaprelpath); dir.replace("//","/"); //just in case any duplicate slashes from all the split/combining if(DEBUG){ qDebug() << " - Load Snapshot:" << dir; } -- cgit