Skip to content

Commit

Permalink
Merge pull request #272 from kbwbe/devel
Browse files Browse the repository at this point in the history
force non native filedialog because of Ubuntu 18.04LTS
  • Loading branch information
kbwbe authored Apr 29, 2019
2 parents a2d159c + 56fe2d8 commit 6195cc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion InitGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
__title__ = 'A2plus assembly Workbench - InitGui file'
__author__ = 'kbwbe'

A2P_VERSION = 'V0.4.17'
A2P_VERSION = 'V0.4.18'



Expand Down
6 changes: 4 additions & 2 deletions a2p_importpart.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,10 @@ def Activated(self):
QtGui.QApplication.activeWindow(),
"Select FreeCAD document to import part from"
)
#dialog.setNameFilter("Supported Formats (*.FCStd);;STEP files (*.stp *.step);;All files (*.*)")
dialog.setNameFilter("Supported Formats (*.FCStd *.stp *.step)") #;;All files (*.*)")
# set option "DontUseNativeDialog"=True, as native Filedialog shows
# misbehavior on Unbuntu 18.04 LTS. It works case sensitively, what is not wanted...
dialog.setOption(QtGui.QFileDialog.DontUseNativeDialog, True)
dialog.setNameFilter("Supported Formats (*.FCStd *.stp *.step);;All files (*.*)")
if dialog.exec_():
if PYVERSION < 3:
filename = unicode(dialog.selectedFiles()[0])
Expand Down

0 comments on commit 6195cc3

Please sign in to comment.