X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fdialogs%2Fsettings.cpp;h=0dc6b055813ea80320e1ba49ab79ff882854b8a2;hb=c409988b235a55772537ef92e1a231bb0a75fa6e;hp=55181e4c3e86bc5a7b5cebb6a0c54790ac7a9d07;hpb=0822e33a2eb713815ae2cd5d6fcca0865643bb00;p=pulseview.git diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index 55181e4c..0dc6b055 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -240,7 +240,7 @@ QWidget *Settings::get_general_settings_form(QWidget *parent) const if (current_style.isEmpty()) style_cb->setCurrentIndex(0); else - style_cb->setCurrentIndex(style_cb->findText(current_style, 0)); + style_cb->setCurrentIndex(style_cb->findText(current_style, nullptr)); connect(style_cb, SIGNAL(currentIndexChanged(int)), this, SLOT(on_general_style_changed(int)));