Remove unneeded assignment, since we're using scoped rollback
This commit is contained in:
@@ -670,7 +670,7 @@ void DockWidget::Private::toggle(bool enabled)
|
||||
void DockWidget::Private::updateToggleAction()
|
||||
{
|
||||
QScopedValueRollback<bool> recursionGuard(m_updatingToggleAction, true); // Guard against recursiveness
|
||||
m_updatingToggleAction = true;
|
||||
|
||||
if ((q->isVisible() || frame()) && !toggleAction->isChecked()) {
|
||||
toggleAction->setChecked(true);
|
||||
} else if ((!q->isVisible() && !frame()) && toggleAction->isChecked()) {
|
||||
|
||||
Reference in New Issue
Block a user