OpenToonz - An open-source full-featured 2D animation creation software
C
Fix tool option on Command bar crash
manongjohn525c4b1d8438
diff --git a/toonz/sources/tnztools/tooloptionscontrols.cpp b/toonz/sources/tnztools/tooloptionscontrols.cppindex 3e9bb687f..fbda3a578 100644--- a/toonz/sources/tnztools/tooloptionscontrols.cpp+++ b/toonz/sources/tnztools/tooloptionscontrols.cpp@@ -138,7 +138,7 @@ void ToolOptionCheckbox::doClick(bool checked) {notifyTool();// for updating a cursor without any effect to the tool options- m_toolHandle->notifyToolCursorTypeChanged();+ if(m_toolHandle) m_toolHandle->notifyToolCursorTypeChanged();}//=============================================================================@@ -681,7 +681,7 @@ void ToolOptionCombo::doOnActivated(int index) {onActivated(index);setCurrentIndex(index);// for updating the cursor- m_toolHandle->notifyToolChanged();+ if (m_toolHandle) m_toolHandle->notifyToolChanged();return;}@@ -697,7 +697,7 @@ void ToolOptionCombo::doOnActivated(int index) {}// for updating a cursor without any effect to the tool options- m_toolHandle->notifyToolCursorTypeChanged();+ if (m_toolHandle) m_toolHandle->notifyToolCursorTypeChanged();}//=============================================================================