[Greater-commits] r239 - trunk/Administration

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jun 22 13:22:25 CEST 2011


Author: bricks
Date: 2011-06-22 13:22:24 +0200 (Wed, 22 Jun 2011)
New Revision: 239

Modified:
   trunk/Administration/BackgrdDialog.cpp
   trunk/Administration/ExportDialog.cpp
   trunk/Administration/ImportDialog.cpp
   trunk/Administration/MainWindow.cpp
   trunk/Administration/UserDialog.cpp
Log:
make error dialog on top of mainwindow

This isn't perfect because the error dialog should be on top of
the current dialog but it's much better to actually see the error
dialog when clicking on the admin tool then searching for the error
dialog by minimizing all other windows.


Modified: trunk/Administration/BackgrdDialog.cpp
===================================================================
--- trunk/Administration/BackgrdDialog.cpp	2011-06-22 11:13:33 UTC (rev 238)
+++ trunk/Administration/BackgrdDialog.cpp	2011-06-22 11:22:24 UTC (rev 239)
@@ -443,5 +443,5 @@
 {
   //Display error message box
   wxMessageBox(errMessage,
-               wxT("Error"), wxOK | wxICON_ERROR);  
+               wxT("Error"), wxOK | wxICON_ERROR, this);  
 }

Modified: trunk/Administration/ExportDialog.cpp
===================================================================
--- trunk/Administration/ExportDialog.cpp	2011-06-22 11:13:33 UTC (rev 238)
+++ trunk/Administration/ExportDialog.cpp	2011-06-22 11:22:24 UTC (rev 239)
@@ -310,7 +310,7 @@
 {
   //Display error message box
   wxMessageBox(errMessage,
-               wxT("Error"), wxOK | wxICON_ERROR);  
+               wxT("Error"), wxOK | wxICON_ERROR, this);  
 }
 
 /*********************************************************************

Modified: trunk/Administration/ImportDialog.cpp
===================================================================
--- trunk/Administration/ImportDialog.cpp	2011-06-22 11:13:33 UTC (rev 238)
+++ trunk/Administration/ImportDialog.cpp	2011-06-22 11:22:24 UTC (rev 239)
@@ -236,7 +236,7 @@
 {
   //Display error message box
   wxMessageBox(errMessage,
-               wxT("Error"), wxOK | wxICON_ERROR);  
+               wxT("Error"), wxOK | wxICON_ERROR, this);
 }
 
 /*********************************************************************

Modified: trunk/Administration/MainWindow.cpp
===================================================================
--- trunk/Administration/MainWindow.cpp	2011-06-22 11:13:33 UTC (rev 238)
+++ trunk/Administration/MainWindow.cpp	2011-06-22 11:22:24 UTC (rev 239)
@@ -924,7 +924,7 @@
                                  wxString::FromUTF8(errinfo->err_param).c_str());
 
   //Display error message box
-  wxMessageBox(errMessage, wxT("Error"), wxOK | wxICON_ERROR);
+  wxMessageBox(errMessage, wxT("Error"), wxOK | wxICON_ERROR, this);
 
 }
 
@@ -945,7 +945,7 @@
 {   
 
   //Display error message box
-  wxMessageBox(errMessage, wxT("Error"), wxOK | wxICON_ERROR);
+  wxMessageBox(errMessage, wxT("Error"), wxOK | wxICON_ERROR, this);
 
 }
 

Modified: trunk/Administration/UserDialog.cpp
===================================================================
--- trunk/Administration/UserDialog.cpp	2011-06-22 11:13:33 UTC (rev 238)
+++ trunk/Administration/UserDialog.cpp	2011-06-22 11:22:24 UTC (rev 239)
@@ -487,5 +487,5 @@
 {
   //Display error message box
   wxMessageBox(errMessage,
-               wxT("Error"), wxOK | wxICON_ERROR);
+               wxT("Error"), wxOK | wxICON_ERROR, this);
 }



More information about the Greater-commits mailing list