Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv27406/src/gui
Modified Files:
wxMFolderDialogs.cpp
Log Message:
slightly improved the fix for crash in folder properties dialog
Index: wxMFolderDialogs.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMFolderDialogs.cpp,v
retrieving revision 1.167
retrieving revision 1.168
diff -b -u -2 -r1.167 -r1.168
--- wxMFolderDialogs.cpp 25 Jul 2002 15:52:36 -0000 1.167
+++ wxMFolderDialogs.cpp 25 Jul 2002 22:40:25 -0000 1.168
@@ -2691,14 +2691,6 @@
ASSERT( WXSIZEOF(s_aszImages) == FolderCreatePage_Max + 1 );
- Profile *profile;
- if ( 0 != dlg )
- {
- // use the parent profile for the default values
- profile = Profile_obj(dlg->GetParentFolderName());
- }
- else
- {
- profile = Profile::CreateProfile("");
- }
+ // use the parent profile for the default values if we have any
+ Profile_obj profile(dlg ? dlg->GetParentFolderName() : String(""));
CHECK_RET( profile, "failed to create profile in wxFolderCreateNotebook" );
@@ -2726,5 +2718,4 @@
(void)new wxOptionsPageHelpers(this, profile);
}
- profile->DecRef();
}
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates