diff --git a/specter/lib/FileBrowser.cpp b/specter/lib/FileBrowser.cpp index f8500ad0b..1c368b060 100644 --- a/specter/lib/FileBrowser.cpp +++ b/specter/lib/FileBrowser.cpp @@ -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(