Skip to content
Permalink
Browse files
Don't set two parents for the same layout. Fixes problems in grass mo…
…dule widget with qt-4.3.4 (and warning message on console on later versions)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9785 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 13, 2008
1 parent af9756e commit 2afe7681aa978b48ac767390607a9ea8be188452
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/plugins/grass/qgsgrassmodule.cpp
@@ -374,8 +374,6 @@ QgsGrassModuleStandardOptions::QgsGrassModuleStandardOptions(
//
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 );

0 comments on commit 2afe768

Please sign in to comment.