From: Soeren Apel Date: Mon, 13 Mar 2017 07:56:03 +0000 (+0100) Subject: Settings: Activate first item upon dialog creation X-Git-Tag: pulseview-0.4.0~151 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=e6d42eec32b61b6831b7926a9d6a5cd03d1f3430 Settings: Activate first item upon dialog creation --- diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index 37b591b6..214ac9cf 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -60,6 +60,7 @@ Settings::Settings(DeviceManager &device_manager, QWidget *parent) : pages = new QStackedWidget; create_pages(); + page_list->setCurrentIndex(page_list->model()->index(0, 0)); QHBoxLayout *tab_layout = new QHBoxLayout; tab_layout->addWidget(page_list);