Revision: 7401
http://mahogany.svn.sourceforge.net/mahogany/?rev=7401&view=rev
Author: vadz
Date: 2008-01-23 03:39:33 -0800 (Wed, 23 Jan 2008)
Log Message:
-----------
fix crash when opening the address book
Modified Paths:
--------------
trunk/M/src/adb/AdbFrame.cpp
Modified: trunk/M/src/adb/AdbFrame.cpp
===================================================================
--- trunk/M/src/adb/AdbFrame.cpp 2008-01-08 17:04:13 UTC (rev 7400)
+++ trunk/M/src/adb/AdbFrame.cpp 2008-01-23 11:39:33 UTC (rev 7401)
@@ -2522,11 +2522,10 @@
void wxAdbEditFrame::OnTextLookupChange(wxCommandEvent&)
{
- // these events are never received this early under MSW
-#ifdef __WXGTK__
+ // we receive the events during find text field creation which happens before
+ // we're fully initialized -- just ignore them
if ( !m_textKey )
return;
-#endif // GTK
GetToolBar()->EnableTool(WXMENU_ADBFIND_NEXT,
!m_textKey->GetValue().IsEmpty());
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates