Fix tool option on Command bar crash
This commit is contained in:
parent
b224639e1c
commit
525c4b1d84
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
Loading…
Reference in a new issue