From: Jarek Kobus Date: Thu, 5 Jul 2012 13:02:47 +0000 (+0200) Subject: Don't change the current page of mainwindow container X-Git-Tag: accepted/tizen/20131212.181521~281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12a06b1ae5df407b3f184c00583f055b637c7df0;p=platform%2Fupstream%2Fqttools.git Don't change the current page of mainwindow container Task-number: QTBUG-12097 Change-Id: I5a4c7c5803b1f82d5ebdc1d61dc00d3dcd43a53f Reviewed-by: Friedemann Kleint --- diff --git a/src/designer/src/components/objectinspector/objectinspector.cpp b/src/designer/src/components/objectinspector/objectinspector.cpp index 45aad7c..9535559 100644 --- a/src/designer/src/components/objectinspector/objectinspector.cpp +++ b/src/designer/src/components/objectinspector/objectinspector.cpp @@ -305,7 +305,7 @@ void ObjectInspector::ObjectInspectorPrivate::showContainersCurrentPage(QWidget bool macroStarted = false; // Find a multipage container (tab widgets, etc.) in the hierarchy and set the right page. while (w != 0) { - if (fw->isManaged(w)) { // Rule out unmanaged internal scroll areas, for example, on QToolBoxes. + if (fw->isManaged(w) && !qobject_cast(w)) { // Rule out unmanaged internal scroll areas, for example, on QToolBoxes. if (QDesignerContainerExtension *c = qt_extension(m_core->extensionManager(), w)) { const int count = c->count(); if (count > 1 && !c->widget(c->currentIndex())->isAncestorOf(widget)) {