Patch #2513 2008-07-08 07:04

dermeister

Fix: Crash when clicking the close-button twice
Download
2513-Fix_Crash_when.patch (412 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2008-07-08 11:19
Assigned to
mortenmacfly
Index: src/src/main.cpp
===================================================================
--- src/src/main.cpp    (revision 5106)
+++ src/src/main.cpp    (working copy)
@@ -2577,6 +2577,9 @@
 
 void MainFrame::OnApplicationClose(wxCloseEvent& event)
 {
+    if (m_InitiatedShutdown)
+        return;
+
     CodeBlocksEvent evt(cbEVT_APP_START_SHUTDOWN);
     Manager::Get()->ProcessEvent(evt);
     Manager::Yield();
dermeister 2008-07-08 07:04

See this thread for more information on the fixed bug:

http://forums.codeblocks.org/index.php/topic,8688.0.html