QMdiArea: use QSignalBlocker
Change-Id: I54bb64531b1b9639bec163a96baae67b9cabd16b Reviewed-by: Olivier Goffart <ogoffart@woboq.com>bb10
parent
b5a4be09aa
commit
91c682e719
|
|
@ -1120,10 +1120,9 @@ void QMdiAreaPrivate::updateActiveWindow(int removedIndex, bool activeRemoved)
|
|||
|
||||
#ifndef QT_NO_TABBAR
|
||||
if (tabBar && removedIndex >= 0) {
|
||||
tabBar->blockSignals(true);
|
||||
const QSignalBlocker blocker(tabBar);
|
||||
tabBar->removeTab(removedIndex);
|
||||
updateTabBarGeometry();
|
||||
tabBar->blockSignals(false);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue