[Greater-commits] r351 - trunk/Administration
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Jul 5 13:33:35 CEST 2011
Author: bricks
Date: 2011-07-05 13:33:35 +0200 (Tue, 05 Jul 2011)
New Revision: 351
Modified:
trunk/Administration/PanelPhrase.cpp
Log:
Use phrase id in dialogs. phrase value could be ambiguous
Modified: trunk/Administration/PanelPhrase.cpp
===================================================================
--- trunk/Administration/PanelPhrase.cpp 2011-07-05 10:34:57 UTC (rev 350)
+++ trunk/Administration/PanelPhrase.cpp 2011-07-05 11:33:35 UTC (rev 351)
@@ -260,7 +260,7 @@
{
//Inform user, that no data is existing to delete
wxMessageBox(wxT("No phrase data loaded to delete.\nDelete not possible!"),
- wxT("Delete not possible"), wxOK | wxICON_INFORMATION);
+ wxT("Delete not possible"), wxOK | wxICON_INFORMATION, this);
return;
}
@@ -275,11 +275,11 @@
phraseid = atol(phraseId.mb_str());
//User has to confirm or cancel, before phrase data is deleted
- message = message.Format(wxT("Do you really want to delete the selected phrase\n\"%s\" ?"),
- phraseValue.c_str());
+ message = message.Format(wxT("Do you really want to delete the selected phrase\n\"%d\" ?"),
+ phraseid);
result = wxMessageBox(message, wxT("Confirm deletion"),
- wxYES_NO|wxNO_DEFAULT | wxICON_QUESTION);
+ wxYES_NO|wxNO_DEFAULT | wxICON_QUESTION, this);
//Delete phrase
if (result == wxYES)
@@ -307,7 +307,7 @@
else
{
//Inform user, that phrase was deleted
- message = message.Format(wxT("Phrase \"%s\" was deleted"), phraseValue.c_str());
+ message = message.Format(wxT("Phrase \"%d\" was deleted"), phraseid);
wxMessageBox(message, wxT("Info"), wxOK | wxICON_INFORMATION, this);
//Reload data from database to refresh grid
More information about the Greater-commits
mailing list