1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-10 18:43:28 -05:00

Configurations dialog: Fix slot names. Sort configs when dialog first opened.

This commit is contained in:
srcejon 2024-06-20 22:30:39 +01:00
parent 1625c42e38
commit 5f0fc8fbf7
2 changed files with 6 additions and 4 deletions

View File

@ -60,6 +60,8 @@ void ConfigurationsDialog::populateTree()
return;
}
sortConfigurations();
QList<Configuration*>::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;

View File

@ -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: