Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

fix apply shortcut

shun_iwasawaf16afdad7fa5
diff --git a/toonz/sources/toonz/shortcutpopup.cpp b/toonz/sources/toonz/shortcutpopup.cpp
index b51b020f0..da02abd78 100644
--- a/toonz/sources/toonz/shortcutpopup.cpp
+++ b/toonz/sources/toonz/shortcutpopup.cpp
@@ -527,6 +527,7 @@ void ShortcutPopup::setPresetShortcuts(TFilePath fp) {
QByteArray ba = id.toLatin1();
const char *charId = ba.data();
action = CommandManager::instance()->getAction((CommandId)charId);
+ if (!action) continue;
CommandManager::instance()->setShortcut(
action, preset.value(id).toString().toStdString(), false);
}