mail[Wesnoth-commits] r28576 - /trunk/src/widgets/file_menu.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by kailoran on August 14, 2008 - 11:14:
Author: ilor
Date: Thu Aug 14 10:02:27 2008
New Revision: 28576

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28576&view=rev
Log:
workaround for the filechooser dialog being unable to go to the root dir on 
windows

Modified:
    trunk/src/widgets/file_menu.cpp

Modified: trunk/src/widgets/file_menu.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/widgets/file_menu.cpp?rev=28576&r1=28575&r2=28576&view=diff
==============================================================================
--- trunk/src/widgets/file_menu.cpp (original)
+++ trunk/src/widgets/file_menu.cpp Thu Aug 14 10:02:27 2008
@@ -215,6 +215,9 @@
                // The root was reached, represent this as one delimiter only.
                curr_path = path_delim;
        }
+#ifdef _WIN32
+       if (curr_path.size() == 2 && curr_path[1] == ':') curr_path += 
path_delim;
+#endif
        return curr_path;
 }
 




Related Messages


Powered by MHonArc, Updated Thu Aug 14 11:21:41 2008