From 5f0fc8fbf72250de9f4d699ad1199b9b1d46334a Mon Sep 17 00:00:00 2001 From: srcejon Date: Thu, 20 Jun 2024 22:30:39 +0100 Subject: [PATCH] Configurations dialog: Fix slot names. Sort configs when dialog first opened. --- sdrgui/gui/configurationsdialog.cpp | 6 ++++-- sdrgui/gui/configurationsdialog.h | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sdrgui/gui/configurationsdialog.cpp b/sdrgui/gui/configurationsdialog.cpp index 4e5c09b20..edbc21068 100644 --- a/sdrgui/gui/configurationsdialog.cpp +++ b/sdrgui/gui/configurationsdialog.cpp @@ -60,6 +60,8 @@ void ConfigurationsDialog::populateTree() return; } + sortConfigurations(); + QList::const_iterator it = m_configurations->begin(); int middleIndex = m_configurations->size() / 2; QTreeWidgetItem *treeItem; @@ -445,14 +447,14 @@ void ConfigurationsDialog::on_configurationImport_clicked() } } -void ConfigurationsDialog::on_configurationTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous) +void ConfigurationsDialog::on_configurationsTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous) { (void) current; (void) previous; updateConfigurationControls(); } -void ConfigurationsDialog::on_configurationTree_itemActivated(QTreeWidgetItem *item, int column) +void ConfigurationsDialog::on_configurationsTree_itemActivated(QTreeWidgetItem *item, int column) { (void) item; (void) column; diff --git a/sdrgui/gui/configurationsdialog.h b/sdrgui/gui/configurationsdialog.h index 4bd3ea813..a6e5a2a42 100644 --- a/sdrgui/gui/configurationsdialog.h +++ b/sdrgui/gui/configurationsdialog.h @@ -69,8 +69,8 @@ private slots: void on_configurationImport_clicked(); void on_configurationDelete_clicked(); void on_configurationLoad_clicked(); - void on_configurationTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous); - void on_configurationTree_itemActivated(QTreeWidgetItem *item, int column); + void on_configurationsTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous); + void on_configurationsTree_itemActivated(QTreeWidgetItem *item, int column); void accept() override; signals: