From 485bc456c57a16dbe50b76c476e48223038bb0e8 Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Tue, 29 Dec 2015 07:57:36 +0100 Subject: extcap: Restore functionality for options Allow stored options to be restored to their default values. This adds a global cleanup method for extcap and globally defined preference values, which fixes the parameter problem with windows Change-Id: I48e0cf846ef81f4732d652c6a2ad0020db5df08e Reviewed-on: https://code.wireshark.org/review/13741 Petri-Dish: Roland Knall Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall --- ui/qt/extcap_options_dialog.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/qt/extcap_options_dialog.h') diff --git a/ui/qt/extcap_options_dialog.h b/ui/qt/extcap_options_dialog.h index 3ca859ed35..14850a3836 100644 --- a/ui/qt/extcap_options_dialog.h +++ b/ui/qt/extcap_options_dialog.h @@ -56,6 +56,7 @@ public: private Q_SLOTS: void on_buttonBox_accepted(); void on_buttonBox_rejected(); + void on_buttonBox_clicked(QAbstractButton *button); void on_buttonBox_helpRequested(); void updateWidgets(); void anyValueChanged(); @@ -69,8 +70,11 @@ private: ExtcapArgumentList extcapArguments; + void loadArguments(); + bool saveOptionToCaptureInfo(); void storeValues(); + void resetValues(); }; #endif /* HAVE_EXTCAP */ -- cgit v1.2.3