src/hbcore/gui/hbdialog.cpp
changeset 7 923ff622b8b9
parent 6 c3690ec91ef8
child 21 4633027730f5
child 34 ed14f46c0e55
--- a/src/hbcore/gui/hbdialog.cpp	Wed Jun 23 18:33:25 2010 +0300
+++ b/src/hbcore/gui/hbdialog.cpp	Tue Jul 06 14:36:53 2010 +0300
@@ -177,7 +177,6 @@
 {
     Q_D(HbDialog);
     d->q_ptr = this;
-    d->init();
     d->timeout = HbPopupPrivate::timeoutValue(HbPopup::NoTimeout);
 }
 
@@ -189,7 +188,6 @@
 {
     Q_D(HbDialog);
     d->q_ptr = this;
-    d->init();
     d->timeout = HbPopupPrivate::timeoutValue(HbPopup::NoTimeout);
 }
 
@@ -259,12 +257,13 @@
         return;
     if (d->contentWidget)
         delete d->contentWidget;
+    prepareGeometryChange(); // needed to paint screen properly
     d->contentWidget = contentWidget;
     if (contentWidget) {
         contentWidget->setParentItem(this);
         HbStyle::setItemName(contentWidget,"content");
     }
-    repolish();
+    repolish();    
 }
 
 /*!