Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Commit

Permalink
Convert QUrl to local path. GUI works on Windows now.
Browse files Browse the repository at this point in the history
  • Loading branch information
winny- committed Mar 10, 2014
1 parent edc058a commit baec745
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sc2bank/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ def droppedSC2Bank(self, mimeData=None):
if len(urls) > 1:
raise NotImplemented('Can only handle one file at once.')

fname = str(urls[0].path())
# http://stackoverflow.com/a/8580720/2720026
fname = str(urls[0].toLocalFile().toLocal8Bit().data())

self.model = Model(fname)
self.reflectModel()
Expand Down

0 comments on commit baec745

Please sign in to comment.