Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv26335/src/gui
Modified Files:
wxMFolderDialogs.cpp
Log Message:
Fix a crash preventing the display of the folder's properties
Index: wxMFolderDialogs.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMFolderDialogs.cpp,v
retrieving revision 1.166
retrieving revision 1.167
diff -b -u -2 -r1.166 -r1.167
--- wxMFolderDialogs.cpp 19 Jul 2002 22:05:32 -0000 1.166
+++ wxMFolderDialogs.cpp 25 Jul 2002 15:52:36 -0000 1.167
@@ -2691,6 +2691,14 @@
ASSERT( WXSIZEOF(s_aszImages) == FolderCreatePage_Max + 1 );
+ Profile *profile;
+ if ( 0 != dlg )
+ {
// use the parent profile for the default values
- Profile_obj profile(dlg->GetParentFolderName());
+ profile = Profile_obj(dlg->GetParentFolderName());
+ }
+ else
+ {
+ profile = Profile::CreateProfile("");
+ }
CHECK_RET( profile, "failed to create profile in wxFolderCreateNotebook" );
@@ -2718,4 +2726,5 @@
(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