Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26299/src/gui
Modified Files:
wxComposeView.cpp
Log Message:
ask confirmation before clearing the window
Index: wxComposeView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxComposeView.cpp,v
retrieving revision 1.400
retrieving revision 1.401
diff -b -u -2 -r1.400 -r1.401
--- wxComposeView.cpp 12 Feb 2006 19:09:00 -0000 1.400
+++ wxComposeView.cpp 13 Feb 2006 16:44:56 -0000 1.401
@@ -3441,5 +3441,19 @@
case WXMENU_COMPOSE_CLEAR:
+ if ( !IsModified() ||
+ MDialog_YesNoCancel
+ (
+ _("Are you sure you want to clear this window?\n"
+ "\n"
+ "Please notice that it is currently impossible to\n"
+ "undo this operation."),
+ this,
+ MDIALOG_YESNOTITLE,
+ M_DLG_NO_DEFAULT
+ ) == MDlg_Yes )
+ {
DoClear();
+ }
+ //else: cancelled
break;
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates