Skip to content

Commit

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

git-svn-id: http://svn.osgeo.org/qgis/trunk@9785 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 13, 2008
1 parent cefa3e9 commit fd63231
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/plugins/grass/qgsgrassmodule.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit fd63231

Please sign in to comment.