diff options
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 ) |