diff options
author | Roland Knall <roland.knall@br-automation.com> | 2016-01-28 10:41:38 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2016-01-28 14:51:14 +0000 |
commit | 97a1a50e200a6c50e0014dde7e8ec932c30190a1 (patch) | |
tree | f7f49f88fd79da22f17d95d39f94b146c2e3b316 /ui/qt/extcap_argument_file.cpp | |
parent | 08527e9b85d91f1d121bfa323b9c32780012a02c (diff) | |
download | wireshark-97a1a50e200a6c50e0014dde7e8ec932c30190a1.tar.gz |
extcap: Cleanup complex types and add save option
Cleanup handling of complex data types and use only
glib defined datatypes while handling argument values.
Add a save parameter, which (additionally) can set, that
a parameter is not saved in a configuration file. Passwords
are by default not saved, which may be overwritten using
this parameter
Change-Id: I67eff0f3286170f082d532e806a39511c40df647
Reviewed-on: https://code.wireshark.org/review/13573
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/extcap_argument_file.cpp')
-rw-r--r-- | ui/qt/extcap_argument_file.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/extcap_argument_file.cpp b/ui/qt/extcap_argument_file.cpp index b93e889ef6..4d2e301aa1 100644 --- a/ui/qt/extcap_argument_file.cpp +++ b/ui/qt/extcap_argument_file.cpp @@ -43,7 +43,6 @@ ExtcapArgumentFileSelection::ExtcapArgumentFileSelection (extcap_arg * argument) : ExtcapArgument(argument), textBox(0) { - _default = new QVariant(QString("")); } ExtcapArgumentFileSelection::~ExtcapArgumentFileSelection() @@ -61,7 +60,7 @@ QWidget * ExtcapArgumentFileSelection::createEditor(QWidget * parent) fileWidget->setContentsMargins(margins.left(), margins.right(), 0, margins.bottom()); QPushButton * button = new QPushButton(UTF8_HORIZONTAL_ELLIPSIS, fileWidget); - textBox = new QLineEdit(_default->toString(), parent); + textBox = new QLineEdit(defaultValue(), parent); textBox->setReadOnly(true); if ( _argument->default_complex != NULL && _argument->arg_type == EXTCAP_ARG_STRING ) |