deviceupdatesui/deviceupdates/src/serversettingsview.cpp
changeset 24 408f75ba5bc2
parent 21 c707676bf59f
child 42 aa33c2cb9a50
--- a/deviceupdatesui/deviceupdates/src/serversettingsview.cpp	Mon May 03 12:24:32 2010 +0300
+++ b/deviceupdatesui/deviceupdates/src/serversettingsview.cpp	Fri May 14 15:42:35 2010 +0300
@@ -17,6 +17,7 @@
 
 #include <hblineedit.h>
 #include <hbmessagebox.h>
+#include <hbnamespace.h>
 #include "serversettingsview.h"
 #include "dmadvancedview.h"
 #include "settingsdataformcustomitem.h"
@@ -160,12 +161,12 @@
         }
     else
         {
-        HbMessageBox note(HbMessageBox::MessageTypeInformation);
-        note.setText(hbTrId(
+        HbMessageBox *note = new HbMessageBox(HbMessageBox::MessageTypeInformation);
+        note->setText(hbTrId(
                 "txt_device_update_dialog_enter_mandatory_field_values"));
-        note.setPrimaryAction(new HbAction("OK"));
-        note.setTimeout(HbPopup::NoTimeout);
-        note.exec();
+        note->setAttribute( Qt::WA_DeleteOnClose);         
+        note->setTimeout(HbPopup::NoTimeout);
+        note->open();
         }        
     }
 
@@ -175,10 +176,11 @@
     if(serversView->checkServerId(srvid))
         {
     serverid->setContentWidgetData(QString("text"), QString("")); 
-    HbMessageBox note(HbMessageBox::MessageTypeInformation);
-           note.setText(hbTrId("txt_device_update_dialog_invalid_server_id"));           
-           note.setTimeout(HbPopup::NoTimeout);
-           note.exec();         
+    HbMessageBox *note= new HbMessageBox(HbMessageBox::MessageTypeInformation);
+           note->setText(hbTrId("txt_device_update_dialog_invalid_server_id")); 
+           note->setAttribute( Qt::WA_DeleteOnClose);                   
+           note->setTimeout(HbPopup::NoTimeout);
+           note->open();         
         }          
     }