From: Soeren Apel Date: Thu, 24 Nov 2016 19:02:06 +0000 (+0100) Subject: Do not change session name when performing only a selective save X-Git-Tag: pulseview-0.4.0~221 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c32bf63a93d8135b5d71c70270dbf45f9b4a8267;p=pulseview.git Do not change session name when performing only a selective save --- diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index 871288c3..c31d0d33 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -828,7 +828,8 @@ void MainBar::export_file(shared_ptr 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);