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

@@ -38,7 +38,7 @@ void MacroSelection::SetCurrentMacro(const MacroRef &macro)
{
auto m = macro.GetMacro();
if (!m) {
this->setCurrentIndex(0);
this->setCurrentIndex(-1);
} else {
this->setCurrentText(QString::fromStdString(m->Name()));
}
@@ -78,7 +78,7 @@ void MacroSelection::MacroRemove(const QString &name)
return;
}
removeItem(idx);
setCurrentIndex(0);
setCurrentIndex(-1);
}
void MacroSelection::MacroRename(const QString &oldName, const QString &newName)