Extcap prefs: Selector correctly selects default value

This commit is contained in:
j.novak@netsystem.cz 2021-12-21 21:40:51 +00:00 committed by Wireshark GitLab Utility
parent df537a63fb
commit 9b62d8ba05
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ QWidget * ExtArgSelector::createEditor(QWidget * parent)
{
int counter = 0;
int selected = -1;
const char *prefval = _argument->pref_valptr ? *_argument->pref_valptr : NULL;
const char *prefval = (_argument->pref_valptr && strlen(*_argument->pref_valptr)) ? *_argument->pref_valptr : NULL;
QString stored(prefval ? prefval : "");
QWidget * editor = new QWidget(parent);