now I actually read the docu :)
authorcoolo <coolo@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Tue, 11 Dec 2007 20:11:01 +0000 (20:11 +0000)
committercoolo <coolo@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Tue, 11 Dec 2007 20:11:01 +0000 (20:11 +0000)
git-svn-id: http://svn.opensuse.org/svn/yast/trunk/qt4@42996 e0cc52ee-31ee-0310-8b87-e83c4596d67c

src/YQWizard.cc

index 8d636f3..cbfab55 100644 (file)
@@ -278,8 +278,8 @@ void YQWizard::updateSteps()
        return;
 
     // Create a grid layout for the steps
-    QVBoxLayout *_stepsVBox = new QVBoxLayout();
-    _stepsPanel->setLayout( _stepsVBox );
+    delete _stepsPanel->layout();
+    QVBoxLayout *_stepsVBox = new QVBoxLayout( _stepsPanel );
 
     QGridLayout *_stepsGrid = new QGridLayout( );
     YUI_CHECK_NEW( _stepsGrid );