Revision: 6753
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6753&view=rev
Author:   alexcb
Date:     2008-07-03 15:50:29 -0700 (Thu, 03 Jul 2008)

Log Message:
-----------
fixed load file bug which caused file chooser to jump to parent dir

Modified Paths:
--------------
    code/stage/trunk/libstage/worldgui.cc

Modified: code/stage/trunk/libstage/worldgui.cc
===================================================================
--- code/stage/trunk/libstage/worldgui.cc       2008-07-03 22:21:34 UTC (rev 
6752)
+++ code/stage/trunk/libstage/worldgui.cc       2008-07-03 22:50:29 UTC (rev 
6753)
@@ -348,12 +348,12 @@
   StgWorldGui* worldGui = static_cast<StgWorldGui*>( p );
 
   const char* filename;
-  const char* worldsPath;
   //bool success;
   const char* pattern = "World Files (*.world)";
        
-  worldsPath = worldGui->fileMan->worldsRoot().c_str();
-  Fl_File_Chooser fc( worldsPath, pattern, Fl_File_Chooser::CREATE, "Load 
World File..." );
+       std::string worldsPath( worldGui->fileMan->worldsRoot() );
+       worldsPath.append( "/" );
+  Fl_File_Chooser fc( worldsPath.c_str(), pattern, Fl_File_Chooser::CREATE, 
"Load World File..." );
   fc.ok_label( "Load" );
        
   fc.show();


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to