workaround for the filechooser dialog...

...being unable to go to the root dir on windows
This commit is contained in:
Tomasz Śniatowski 2008-08-14 09:02:27 +01:00
parent cd67884cb9
commit f04a347b02

View file

@ -215,6 +215,9 @@ std::string file_menu::get_path_up(const std::string path, const unsigned levels
// 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;
}