mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-01 22:25:36 -05:00
Adjust to FilterComboBox
This commit is contained in:
@@ -38,7 +38,7 @@ void MacroSelection::SetCurrentMacro(const MacroRef ¯o)
|
||||
{
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user