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