OpenToonz - An open-source full-featured 2D animation creation software
C
#morevna #board Switch scenes with single click.
Konstantin Dmitriev6081f1d22aa5
diff --git a/toonz/sources/toonz/scenebrowser.cpp b/toonz/sources/toonz/scenebrowser.cppindex 4593c1796..fc59b798e 100644--- a/toonz/sources/toonz/scenebrowser.cpp+++ b/toonz/sources/toonz/scenebrowser.cpp@@ -2171,6 +2171,12 @@ void SceneBrowser::enableDoubleClickToOpenScenes() {SLOT(tryToOpenScene(const TFilePath &)));}+void SceneBrowser::enableSingleClickToOpenScenes() {+ // perhaps this should disconnect existing signal handlers first+ connect(this, SIGNAL(filePathClicked(const TFilePath &)), this,+ SLOT(tryToOpenScene(const TFilePath &)));+}+//-----------------------------------------------------------------------------void SceneBrowser::tryToOpenScene(const TFilePath &filePath) {diff --git a/toonz/sources/toonz/scenebrowser.h b/toonz/sources/toonz/scenebrowser.hindex 273eec3a2..76574c6c7 100644--- a/toonz/sources/toonz/scenebrowser.h+++ b/toonz/sources/toonz/scenebrowser.h@@ -101,6 +101,8 @@ types to be displayed in the file browser.// So it is disabled by default.void enableDoubleClickToOpenScenes();+ void enableSingleClickToOpenScenes();+protected:int findIndexWithPath(TFilePath path);void getExpandedFolders(DvDirModelNode *node,diff --git a/toonz/sources/toonz/tpanels.cpp b/toonz/sources/toonz/tpanels.cppindex 1dce24369..f3e677b8c 100644--- a/toonz/sources/toonz/tpanels.cpp+++ b/toonz/sources/toonz/tpanels.cpp@@ -1221,7 +1221,7 @@ public:TFilePath scenesFolder =TProjectManager::instance()->getCurrentProject()->getScenesPath();browser->setFolder(scenesFolder, true);- browser->enableDoubleClickToOpenScenes();+ browser->enableSingleClickToOpenScenes();}} PreproductionBoardFactory;