Patch #1750 2006-12-21 19:33

sethjackson

Window layout
Download
1750-Window_layout.patch (674 bytes)
Category
Application::Bugfix
Status
Closed
Close date
2006-12-24 10:56
Assigned to
 
Index: src/src/main.cpp
===================================================================
--- src/src/main.cpp    (revision 3412)
+++ src/src/main.cpp    (working copy)
@@ -1144,6 +1144,8 @@
     }
     if (select)
         DoSelectLayout(name);
+
+    m_LastLayoutName = name;
 }
 
 bool MainFrame::DoCheckCurrentLayoutForChanges(bool canCancel)
@@ -3010,8 +3012,9 @@
         {
             m_LayoutViews[gDefaultLayout] = gDefaultLayoutData;
             LoadViewLayout(gDefaultLayout);
-            return;
         }
+
+        return;
     }
 
     if (cbMessageBox(wxString::Format(_("Are you really sure you want to delete the layout '%s'?"), m_LastLayoutName.c_str()),
sethjackson 2006-12-21 19:35
killerbot 2006-12-24 10:56

applied : rev 3420

Thanks !!!