Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv14504/src/gui
Modified Files:
wxTemplateDialog.cpp
Log Message:
fixed a harmless (but only by sheer luck and still resulting in an assert) bug with
modifying the disabled textctrl using the popup menu
Index: wxTemplateDialog.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxTemplateDialog.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -b -u -2 -r1.21 -r1.22
--- wxTemplateDialog.cpp 3 Nov 2001 18:57:46 -0000 1.21
+++ wxTemplateDialog.cpp 4 Mar 2002 18:00:26 -0000 1.22
@@ -236,4 +236,10 @@
void TemplateEditor::OnRClick(wxMouseEvent& event)
{
+ if ( !IsEnabled() )
+ {
+ // don't allow inserting the text into a disabled control
+ return;
+ }
+
// create the menu if it hadn't been created yet
CreatePopupMenu();
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates