Fix tool option on Command bar crash

This commit is contained in:
manongjohn 2019-11-15 10:49:00 -05:00
parent b224639e1c
commit 525c4b1d84

View file

@ -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();
}
//=============================================================================