mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-25 03:15:33 -05:00
Fix crash if previous condition / action was invalid
This commit is contained in:
parent
9ea90ed61b
commit
7bc1fc3d0d
|
|
@ -610,6 +610,7 @@ void MacroActionTwitchEdit::ActionChanged(int idx)
|
|||
}
|
||||
|
||||
if (idx == -1) { // Reset to previous selection
|
||||
const QSignalBlocker b(_actions);
|
||||
_actions->setCurrentIndex(_actions->findData(
|
||||
static_cast<int>(_entryData->_action)));
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -773,6 +773,7 @@ void MacroConditionTwitchEdit::ConditionChanged(int idx)
|
|||
}
|
||||
|
||||
if (idx == -1) { // Reset to previous selection
|
||||
const QSignalBlocker b(_conditions);
|
||||
_conditions->setCurrentIndex(_conditions->findData(
|
||||
static_cast<int>(_entryData->GetCondition())));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user