aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/qt/wireshark_application.cpp16
-rw-r--r--ui/qt/wireshark_application.h2
2 files changed, 2 insertions, 16 deletions
diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp
index 4dd0b0eac5..1e63bf6b5a 100644
--- a/ui/qt/wireshark_application.cpp
+++ b/ui/qt/wireshark_application.cpp
@@ -30,6 +30,7 @@
#include "epan/tap.h"
#include "epan/timestamp.h"
+#include "ui/preference_utils.h"
#include "ui/recent.h"
#include "ui/simple_dialog.h"
#include "ui/util.h"
@@ -447,7 +448,7 @@ void WiresharkApplication::setConfigurationProfile(const gchar *profile_name)
color_filters_enable(recent.packet_list_colorize);
tap_update_timer_.setInterval(prefs.tap_update_interval);
- prefsToCaptureOpts();
+ prefs_to_capture_opts();
prefs_apply_all();
emit filterExpressionsChanged();
// macros_post_update();
@@ -467,19 +468,6 @@ void WiresharkApplication::setConfigurationProfile(const gchar *profile_name)
// menu_recent_read_finished();
}
-void WiresharkApplication::prefsToCaptureOpts()
-{
-#ifdef HAVE_LIBPCAP
- /* Set promiscuous mode from the preferences setting. */
- /* the same applies to other preferences settings as well. */
- global_capture_opts.default_options.promisc_mode = prefs.capture_prom_mode;
- global_capture_opts.use_pcapng = prefs.capture_pcap_ng;
- global_capture_opts.show_info = prefs.capture_show_info;
- global_capture_opts.real_time_mode = prefs.capture_real_time;
-// auto_scroll_live = prefs.capture_auto_scroll;
-#endif /* HAVE_LIBPCAP */
-}
-
void WiresharkApplication::setLastOpenDir(const char *dir_name)
{
qint64 len;
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h
index 067b7c66b5..ab29035e90 100644
--- a/ui/qt/wireshark_application.h
+++ b/ui/qt/wireshark_application.h
@@ -90,8 +90,6 @@ public:
bool isInitialized() { return initialized_; }
private:
- void prefsToCaptureOpts();
-
bool initialized_;
QFont mono_regular_font_;
QFont mono_bold_font_;