mirror of https://github.com/odrling/Aegisub
Add a temp conditional to avoid exceptions when a command doesn't exist since the hotkeys aren't fully converted.
Originally committed to SVN as r5134.
This commit is contained in:
parent
b56b641122
commit
c95d92c2ca
|
@ -69,6 +69,9 @@ void check(std::string context, int key_code, wchar_t key_char, int modifier) {
|
||||||
|
|
||||||
std::string command;
|
std::string command;
|
||||||
if (agi::hotkey::hotkey->Scan(context, combo, command) == 0) {
|
if (agi::hotkey::hotkey->Scan(context, combo, command) == 0) {
|
||||||
|
/// The bottom line should be removed after all the hotkey commands are fixed.
|
||||||
|
/// This is to avoid pointless exceptions.
|
||||||
|
if (command.find("/") != std::string::npos)
|
||||||
(*cmd::get(command))(&wxGetApp().frame->temp_context);
|
(*cmd::get(command))(&wxGetApp().frame->temp_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue