From 7d6984a5ccd1c7fee225240d7cfd5685796cfea0 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Wed, 4 Nov 2015 18:37:39 +0100 Subject: [PATCH] MainWindow: Add selection_only parameter to export_file() --- pv/mainwindow.cpp | 5 ++++- pv/mainwindow.hpp | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index c3f8fdb8..aca5acf3 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -223,10 +223,13 @@ void MainWindow::select_device(shared_ptr device) } } -void MainWindow::export_file(shared_ptr format) +void MainWindow::export_file(shared_ptr format, + bool selection_only) { using pv::dialogs::StoreProgress; + (void)selection_only; + // Stop any currently running capture session session_.stop_capture(); diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 94fc092a..bf0aa125 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -104,7 +104,8 @@ public: void select_device(std::shared_ptr device); public Q_SLOTS: - void export_file(std::shared_ptr format); + void export_file(std::shared_ptr format, + bool selection_only = false); void import_file(std::shared_ptr format); private: -- 2.30.2