Skip to content

Commit

Permalink
Added workaround for crash on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
evoggy committed Dec 8, 2014
1 parent 66493b7 commit 983ed71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/cfclient/ui/dialogs/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ def closeEvent(self, event):

@pyqtSlot()
def pathBrowse(self):
filename = QtGui.QFileDialog.getOpenFileName()
filename = ""
# Fix for crash in X on Ubuntu 14.04
if sys.platform.startswith('linux'):
filename = QtGui.QFileDialog.getOpenFileName(options=QtGui.QFileDialog.DontUseNativeDialog)
else:
filename = QtGui.QFileDialog.getOpenFileName()
if filename != "":
self.imagePathLine.setText(filename)
pass
Expand Down

0 comments on commit 983ed71

Please sign in to comment.