[QGIS Commit] r9785 - trunk/qgis/src/plugins/grass
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Dec 13 15:01:44 EST 2008
Author: mhugent
Date: 2008-12-13 15:01:44 -0500 (Sat, 13 Dec 2008)
New Revision: 9785
Modified:
trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
Log:
Don't set two parents for the same layout. Fixes problems in grass module widget with qt-4.3.4 (and warning message on console on later versions)
Modified: trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp 2008-12-13 19:25:59 UTC (rev 9784)
+++ trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp 2008-12-13 20:01:44 UTC (rev 9785)
@@ -374,8 +374,6 @@
//
QVBoxLayout * mypOuterLayout = new QVBoxLayout( mParent );
mypOuterLayout->setContentsMargins( 0, 0, 0, 0 );
- //transfers layout ownership so no need to call delete
- this->setLayout( mypOuterLayout );
QScrollArea * mypScrollArea = new QScrollArea();
//transfers scroll area ownership so no need to call delete
mypOuterLayout->addWidget( mypScrollArea );
More information about the QGIS-commit
mailing list