diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2016-01-25 12:07:10 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2016-01-26 18:03:45 +0000 |
commit | 06e519786731a962403710d6cf30e8d4dabd42b2 (patch) | |
tree | 4bc9f68eb8fdbc340685dc431cbb54f4bba711bb /ui/qt/main_window.h | |
parent | 1c822e713034d06944315c138d093aa720ab5752 (diff) | |
download | wireshark-06e519786731a962403710d6cf30e8d4dabd42b2.tar.gz |
Qt: Improved testCaptureFileClose dialog texts
Make the "Unsaved packets" dialog question and informative text
use the same layout for all cases.
Added before_what texts when opening another file and closing the
file. Changed the texts for restarting the capture.
Renamed FileCloseButtons to FileCloseContext to use it for other
checks than just button texts.
Change-Id: I4a39852a1c18e8ffb7fa6b5c800a84500f995bc8
Reviewed-on: https://code.wireshark.org/review/13524
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/main_window.h')
-rw-r--r-- | ui/qt/main_window.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h index a13aa052e2..311005c8f0 100644 --- a/ui/qt/main_window.h +++ b/ui/qt/main_window.h @@ -121,10 +121,10 @@ private: CopySelectedValue }; - enum FileCloseButtons { - DefaultButtons, - QuitButtons, - RestartButtons + enum FileCloseContext { + Default, + Quit, + Restart }; Ui::MainWindow *main_ui_; @@ -186,7 +186,7 @@ private: void exportDissections(export_type_e export_type); void fileAddExtension(QString &file_name, int file_type, bool compressed); - bool testCaptureFileClose(QString before_what = QString(), FileCloseButtons buttons = DefaultButtons); + bool testCaptureFileClose(QString before_what, FileCloseContext context = Default); void captureStop(); void initMainToolbarIcons(); |