summaryrefslogtreecommitdiff
path: root/ui/qt/extcap_argument_file.cpp
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2015-12-29 07:57:36 +0100
committerMichael Mann <mmann78@netscape.net>2016-07-29 03:15:54 +0000
commit485bc456c57a16dbe50b76c476e48223038bb0e8 (patch)
tree5fabaa4504ccce8a08ddd23d8bbb8f9aaf60935a /ui/qt/extcap_argument_file.cpp
parent191f9bdbc50bd3993259d31dfeeaa95187984fed (diff)
downloadwireshark-485bc456c57a16dbe50b76c476e48223038bb0e8.tar.gz
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 <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/extcap_argument_file.cpp')
-rw-r--r--ui/qt/extcap_argument_file.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/qt/extcap_argument_file.cpp b/ui/qt/extcap_argument_file.cpp
index 5e538036bb..df8da8caeb 100644
--- a/ui/qt/extcap_argument_file.cpp
+++ b/ui/qt/extcap_argument_file.cpp
@@ -57,15 +57,16 @@ QWidget * ExtcapArgumentFileSelection::createEditor(QWidget * parent)
{
QString storeval;
QString text = defaultValue();
+ QString buttonText(UTF8_HORIZONTAL_ELLIPSIS);
QWidget * fileWidget = new QWidget(parent);
QHBoxLayout * editLayout = new QHBoxLayout();
QMargins margins = editLayout->contentsMargins();
editLayout->setContentsMargins(0, 0, 0, margins.bottom());
fileWidget->setContentsMargins(margins.left(), margins.right(), 0, margins.bottom());
- QPushButton * button = new QPushButton(UTF8_HORIZONTAL_ELLIPSIS, fileWidget);
+ QPushButton * button = new QPushButton(buttonText, fileWidget);
- textBox = new QLineEdit(defaultValue(), parent);
+ textBox = new QLineEdit(text, parent);
textBox->setReadOnly(true);
if ( _argument->storeval )