aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/wireshark_application.cpp
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2016-10-19 10:19:28 +0200
committerAnders Broman <a.broman58@gmail.com>2016-10-20 05:09:58 +0000
commit961b05315df0c17bc21ca77553d1e29ebdf39309 (patch)
treeea6e7704c3d2c92503f551cab50404e62a26288a /ui/qt/wireshark_application.cpp
parentf0cb70bd18171a8102f4a6baefb385a1dcd2d960 (diff)
WelcomeUI: Make Open and Capture clickable
Make the texts "Open" and "Capture" clickable, and have them open the FileOpen and CaptureOptions dialogs respectively Change-Id: I2a3efbc4cdf160aa0b4efc6496d09228affbff46 Reviewed-on: https://code.wireshark.org/review/18303 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/wireshark_application.cpp')
-rw-r--r--ui/qt/wireshark_application.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp
index 49cc86a61e..892cc7154d 100644
--- a/ui/qt/wireshark_application.cpp
+++ b/ui/qt/wireshark_application.cpp
@@ -1132,6 +1132,19 @@ void WiresharkApplication::loadLanguage(const QString newLanguage)
}
}
+void WiresharkApplication::doTriggerMenuItem(MainMenuItem menuItem)
+{
+ switch (menuItem)
+ {
+ case FileOpenDialog:
+ emit openCaptureFile(QString(), QString(), WTAP_TYPE_AUTO);
+ break;
+ case CaptureOptionsDialog:
+ emit openCaptureOptions();
+ break;
+ }
+}
+
/*
* Editor modelines
*