Adjust to FilterComboBox

This commit is contained in:
WarmUpTill
2023-07-17 21:47:04 +02:00
committed by WarmUpTill
parent d9c1ef4c22
commit 78d73af589
5 changed files with 14 additions and 22 deletions

View File

@@ -276,7 +276,7 @@ void ConnectionSelection::SetConnection(const std::string &con)
if (!!GetConnectionByName(con)) {
_selection->setCurrentText(QString::fromStdString(con));
} else {
_selection->setCurrentIndex(0);
_selection->setCurrentIndex(-1);
}
}
@@ -288,7 +288,7 @@ void ConnectionSelection::SetConnection(
if (connection) {
SetConnection(connection->Name());
} else {
_selection->setCurrentIndex(0);
_selection->setCurrentIndex(-1);
}
}