Relocate Win32 volume path hack

This commit is contained in:
Jack Andersen 2016-01-02 10:38:16 -10:00
parent a4a531a558
commit 5306e48481
1 changed files with 0 additions and 14 deletions

View File

@ -112,13 +112,6 @@ void FileBrowser::SyncBookmarkSelections(Table& table, BookmarkDataBind& binding
void FileBrowser::navigateToPath(const HECL::SystemString& path)
{
HECL::Sstat theStat;
#if _WIN32
if (path.size() == 2 && path[1] == L':')
{
if (HECL::Stat((path + L'/').c_str(), &theStat))
return;
} else
#endif
if (HECL::Stat(path.c_str(), &theStat))
return;
@ -199,14 +192,7 @@ void FileBrowser::okActivated(bool viaButton)
}
HECL::Sstat theStat;
#if _WIN32
HECL::SystemString fixPath = path;
if (path.size() == 2 && path[1] == L':')
fixPath += L'/';
if (HECL::Stat(fixPath.c_str(), &theStat) || !S_ISDIR(theStat.st_mode))
#else
if (HECL::Stat(path.c_str(), &theStat) || !S_ISDIR(theStat.st_mode))
#endif
{
HECL::SystemUTF8View utf8(path);
m_fileField.m_view->setErrorState(