Fixed issue where active tool could be nullptr
This commit is contained in:
committed by
borgmanJeremy
parent
01a3b809f3
commit
e0333bb0ba
@@ -831,8 +831,10 @@ void CaptureWidget::setState(CaptureToolButton* b)
|
||||
}
|
||||
if (m_toolWidget) {
|
||||
m_toolWidget->deleteLater();
|
||||
if (m_activeTool->isValid()) {
|
||||
pushToolToStack();
|
||||
if (m_activeTool != nullptr) {
|
||||
if (m_activeTool->isValid()) {
|
||||
pushToolToStack();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (m_activeButton != b) {
|
||||
|
||||
Reference in New Issue
Block a user