From 1e3d47dec4b11f9d34a79eb0cd8ef8bd62e9ffbf Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Sep 26 2022 09:04:48 +0000 Subject: fix custom panel registration --- diff --git a/toonz/sources/toonzqt/menubarcommand.cpp b/toonz/sources/toonzqt/menubarcommand.cpp index 5779c9f..e8cd8c6 100644 --- a/toonz/sources/toonzqt/menubarcommand.cpp +++ b/toonz/sources/toonzqt/menubarcommand.cpp @@ -569,7 +569,10 @@ void DVMenuAction::onTriggered(QAction *action) { CommandManager::instance()->execute(action, menuAction()); // simply execute the menu item and return - if (!m_isForRecentFiles) return; + if (!m_isForRecentFiles) { + m_triggeredActionIndex = -1; + return; + } int oldIndex = m_triggeredActionIndex; if (m_triggeredActionIndex != -1) m_triggeredActionIndex = -1;