]> sigrok.org Git - pulseview.git/commitdiff
Settings: Activate first item upon dialog creation
authorSoeren Apel <redacted>
Mon, 13 Mar 2017 07:56:03 +0000 (08:56 +0100)
committerSoeren Apel <redacted>
Mon, 13 Mar 2017 07:56:03 +0000 (08:56 +0100)
pv/dialogs/settings.cpp

index 37b591b6d786dba5fdbf6b869ae1469db19a4e36..214ac9cf26e862aefd4208a4da84d685709d2655 100644 (file)
@@ -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);