Skip to content

Commit

Permalink
Fix tooltable xml import
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisb-github authored and wwmayer committed Jun 28, 2017
1 parent bcfc1bf commit 18ed89a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Path/PathScripts/PathToolLibraryManager.py
Expand Up @@ -485,9 +485,9 @@ def importFile(self):
"imports a tooltable from a file"
filename = QtGui.QFileDialog.getOpenFileName(self.form, translate( "TooltableEditor", "Open tooltable", None), None, translate("TooltableEditor", "Tooltable XML (*.xml);;HeeksCAD tooltable (*.tooltable)", None))
if filename[0]:
listname = self.form.listView.selectedIndexes()[0].data()
listname = '<Main>'
if self.TLM.read(filename, listname):
self.loadTable(self.form.listView.selectedIndexes()[0])
self.loadTable()


def exportFile(self):
Expand Down

0 comments on commit 18ed89a

Please sign in to comment.