Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17015/src/gui

Modified Files:
        wxFolderTree.cpp 
Log Message:
Fix a crash on MSVC due to some uninitialized variable

Index: wxFolderTree.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderTree.cpp,v
retrieving revision 1.234
retrieving revision 1.235
diff -b -u -2 -r1.234 -r1.235
--- wxFolderTree.cpp    28 Apr 2004 11:05:13 -0000      1.234
+++ wxFolderTree.cpp    3 May 2004 07:44:15 -0000       1.235
@@ -782,4 +782,9 @@
 {
    m_tree = new wxFolderTreeImpl(this, parent, id, pos, size);
+
+   // preselect the home folder: this is probably better then returning the
+   // selection to the last selected item although we could still do this if
+   // there is no home folder...
+   m_tree->GoToHomeFolderIfAny();
 }
 
@@ -1813,9 +1818,4 @@
         FAIL_MSG( _T("Failed to register folder tree with event manager") );
     }
-
-   // preselect the home folder: this is probably better then returning the
-   // selection to the last selected item although we could still do this if
-   // there is no home folder...
-   GoToHomeFolderIfAny();
 }
 



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to