diff --git a/toonz/sources/tnztools/tooloptionscontrols.cpp b/toonz/sources/tnztools/tooloptionscontrols.cpp index 3e9bb68..fbda3a5 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(); } //=============================================================================