[Greater-commits] r241 - trunk/Administration

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jun 22 15:12:56 CEST 2011


Author: bricks
Date: 2011-06-22 15:12:54 +0200 (Wed, 22 Jun 2011)
New Revision: 241

Modified:
   trunk/Administration/UserDialog.cpp
Log:
All message boxes must have an parent


Modified: trunk/Administration/UserDialog.cpp
===================================================================
--- trunk/Administration/UserDialog.cpp	2011-06-22 13:10:28 UTC (rev 240)
+++ trunk/Administration/UserDialog.cpp	2011-06-22 13:12:54 UTC (rev 241)
@@ -256,21 +256,21 @@
   if (userName.IsEmpty() == true)
   {
     //Inform user, that this is not allowed
-    wxMessageBox(wxT("Please enter username"), wxT("Info"), wxOK | wxICON_INFORMATION);
+    wxMessageBox(wxT("Please enter username"), wxT("Info"), wxOK | wxICON_INFORMATION, this);
     textUser->SetFocus();
     return;
   }
   if (groupId.IsEmpty() == true)
   {
     //Inform user, that this is not allowed
-    wxMessageBox(wxT("Please enter GroupID"), wxT("Info"), wxOK | wxICON_INFORMATION);
+    wxMessageBox(wxT("Please enter GroupID"), wxT("Info"), wxOK | wxICON_INFORMATION, this);
     choiceGroupId->SetFocus();
     return;
   }
   if (status.IsEmpty() == true)
   {
     //Inform user, that this is not allowed
-    wxMessageBox(wxT("Please enter Status"), wxT("Info"), wxOK | wxICON_INFORMATION);
+    wxMessageBox(wxT("Please enter Status"), wxT("Info"), wxOK | wxICON_INFORMATION, this);
     textStatus->SetFocus();
     return;
   }
@@ -350,14 +350,14 @@
   if (groupId.IsEmpty() == true)
   {
     //Inform user, that this is not allowed
-    wxMessageBox(wxT("Please enter Group ID"), wxT("Info"), wxOK | wxICON_INFORMATION);
+    wxMessageBox(wxT("Please enter Group ID"), wxT("Info"), wxOK | wxICON_INFORMATION, this);
     choiceGroupId->SetFocus();
     return;
   }
   if (status.IsEmpty() == true)
   {
     //Inform user, that this is not allowed
-    wxMessageBox(wxT("Please enter Status"), wxT("Info"), wxOK | wxICON_INFORMATION);
+    wxMessageBox(wxT("Please enter Status"), wxT("Info"), wxOK | wxICON_INFORMATION, this);
     textStatus->SetFocus();
     return;
   }



More information about the Greater-commits mailing list