OpenToonz - An open-source full-featured 2D animation creation software
C
Fix crash when adding to task list from browser
JPUser1c33b967fa72b
diff --git a/toonz/sources/toonz/fileselection.cpp b/toonz/sources/toonz/fileselection.cppindex 37a8d2a74..834e1b758 100644--- a/toonz/sources/toonz/fileselection.cpp+++ b/toonz/sources/toonz/fileselection.cpp@@ -239,6 +239,10 @@ void FileSelection::enableCommands() {//------------------------------------------------------------------------void FileSelection::addToBatchRenderList() {+ if (!BatchesController::instance()->getTasksTree()) {+ QAction *taskPopup = CommandManager::instance()->getAction(MI_OpenTasks);+ taskPopup->trigger();+ }std::vector<TFilePath> files;getSelectedFiles(files);int i;@@ -251,6 +255,11 @@ void FileSelection::addToBatchRenderList() {//------------------------------------------------------------------------void FileSelection::addToBatchCleanupList() {+ if (!BatchesController::instance()->getTasksTree()) {+ QAction *taskPopup = CommandManager::instance()->getAction(MI_OpenTasks);+ taskPopup->trigger();+ }+std::vector<TFilePath> files;getSelectedFiles(files);int i;