]> sigrok.org Git - pulseview.git/commitdiff
Do not change session name when performing only a selective save
authorSoeren Apel <redacted>
Thu, 24 Nov 2016 19:02:06 +0000 (20:02 +0100)
committerSoeren Apel <redacted>
Sun, 4 Dec 2016 13:37:38 +0000 (14:37 +0100)
pv/toolbars/mainbar.cpp

index 871288c39f9947e23c17648d116cbc629ad89d97..c31d0d33860021fe11fb2eacb020c3535a3a8de9 100644 (file)
@@ -828,7 +828,8 @@ void MainBar::export_file(shared_ptr<OutputFormat> format,
                options = dlg.options();
        }
 
-       session_.set_name(QFileInfo(file_name).fileName());
+       if (!selection_only)
+               session_.set_name(QFileInfo(file_name).fileName());
 
        StoreProgress *dlg = new StoreProgress(file_name, format, options,
                sample_range, session_, this);