Skip to content

Commit

Permalink
Use the rootPath from Qt instead of Python
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanC committed Oct 22, 2018
1 parent 1b5fbc7 commit 0d54467
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/windows/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ def __init__(self):
tabWidget.layout().addStretch()

def selectExecutable(self, widget, param):
path = os.path.abspath(os.sep)
fileName, _ = QFileDialog.getOpenFileName(self,"Select executable file", path,"All Files (*)")
fileName, _ = QFileDialog.getOpenFileName(self,"Select executable file", QDir.rootPath(),"All Files (*)")
if fileName:
self.s.set(param["setting"], fileName)
widget.setText(fileName)
Expand Down

0 comments on commit 0d54467

Please sign in to comment.