Skip to content

Commit

Permalink
Merge pull request ethereum#203 from winsvega/filesystemView
Browse files Browse the repository at this point in the history
fix filesystem view on windows
  • Loading branch information
yann300 committed Feb 8, 2016
2 parents 2861ef1 + 99c4083 commit eff94e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion qml/ProjectList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ ScrollView
currentFolder = folder
folderPath.text = folder
projectModel.currentFolder = folder
if (currentFolder.indexOf("/") !== -1)
if (currentFolder.indexOf("/") !== -1 && currentFolder.substring(1) !== ":")
model.append({ fileName: "..", type: "folder", path: currentFolder })
fillView(fileIo.directories(folder), "folder")
fillView(fileIo.files(folder), "file")
Expand Down
5 changes: 5 additions & 0 deletions src/FileIo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ QString FileIo::pathFromUrl(QString const& _url)
{
QUrl url(_url);
QString path(url.path());
#ifdef WIN32
if (_url.midRef(1, 1) == ":")
path = _url.mid(0, 2).toUpper() + "\\" + path;
#endif

if (url.scheme() == "qrc")
path = ":" + path;
#ifdef WIN32
Expand Down

0 comments on commit eff94e1

Please sign in to comment.