mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-21 01:27:24 -05:00
Escape settings when pressing "Get settings" and regex is active
This commit is contained in:
parent
9d8fadda80
commit
174c17edea
|
|
@ -191,8 +191,11 @@ void MacroConditionFilterEdit::GetSettingsClicked()
|
|||
return;
|
||||
}
|
||||
|
||||
_settings->setPlainText(
|
||||
formatJsonString(getSourceSettings(_entryData->_filter)));
|
||||
QString json = formatJsonString(getSourceSettings(_entryData->_filter));
|
||||
if (_entryData->_regex) {
|
||||
json = escapeForRegex(json);
|
||||
}
|
||||
_settings->setPlainText(json);
|
||||
}
|
||||
|
||||
void MacroConditionFilterEdit::SettingsChanged()
|
||||
|
|
|
|||
|
|
@ -170,8 +170,11 @@ void MacroConditionSourceEdit::GetSettingsClicked()
|
|||
return;
|
||||
}
|
||||
|
||||
_settings->setPlainText(
|
||||
formatJsonString(getSourceSettings(_entryData->_source)));
|
||||
QString json = formatJsonString(getSourceSettings(_entryData->_source));
|
||||
if (_entryData->_regex) {
|
||||
json = escapeForRegex(json);
|
||||
}
|
||||
_settings->setPlainText(json);
|
||||
}
|
||||
|
||||
void MacroConditionSourceEdit::SettingsChanged()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user