OpenToonz - An open-source full-featured 2D animation creation software
C
Fix update breadcrumbs crash
manongjohn3b2c118fd58e
diff --git a/toonz/sources/toonz/xshbreadcrumbs.cpp b/toonz/sources/toonz/xshbreadcrumbs.cppindex 0c80c412f..2f65bde9f 100644--- a/toonz/sources/toonz/xshbreadcrumbs.cpp+++ b/toonz/sources/toonz/xshbreadcrumbs.cpp@@ -83,7 +83,8 @@ void Breadcrumb::onButtonClicked() {app->getCurrentColumn()->setColumnIndex(m_col);app->getCurrentFrame()->setFrameIndex(r);- app->getCurrentSelection()->getSelection()->selectNone();+ if (app->getCurrentSelection()->getSelection())+ app->getCurrentSelection()->getSelection()->selectNone();QAction *openChildAction =CommandManager::instance()->getAction(MI_OpenChild);@@ -123,7 +124,8 @@ void Breadcrumb::onComboBoxIndexChanged(int index) {app->getCurrentColumn()->setColumnIndex(col);app->getCurrentFrame()->setFrameIndex(r);- app->getCurrentSelection()->getSelection()->selectNone();+ if (app->getCurrentSelection()->getSelection())+ app->getCurrentSelection()->getSelection()->selectNone();QAction *openChildAction =CommandManager::instance()->getAction(MI_OpenChild);