Added FlachyJoe's fix - fixes #168
This commit is contained in:
parent
130c87a613
commit
55e011cff7
1 changed files with 11 additions and 10 deletions
|
@ -417,18 +417,19 @@ class ConfigDialog(QtGui.QDialog):
|
|||
librarypath = FreeCAD.ParamGet('User parameter:Plugins/parts_library').GetString('destination','')
|
||||
np = QtGui.QFileDialog.getExistingDirectory(self,"Location of your existing Parts library",librarypath)
|
||||
if np:
|
||||
self.lineEdit_3.setText(librarypath)
|
||||
|
||||
self.lineEdit_3.setText(np)
|
||||
|
||||
def accept(self):
|
||||
cw = repo.remote().config_writer
|
||||
if self.lineEdit.text():
|
||||
cw.set("url", str(self.lineEdit.text()))
|
||||
if self.lineEdit_2.text():
|
||||
cw.set("pushurl", str(self.lineEdit_2.text()))
|
||||
if hasattr(cw,"release"):
|
||||
cw.release()
|
||||
if repo:
|
||||
cw = repo.remote().config_writer
|
||||
if self.lineEdit.text():
|
||||
cw.set("url", str(self.lineEdit.text()))
|
||||
if self.lineEdit_2.text():
|
||||
cw.set("pushurl", str(self.lineEdit_2.text()))
|
||||
if hasattr(cw,"release"):
|
||||
cw.release()
|
||||
if self.lineEdit_3.text():
|
||||
FreeCAD.ParamGet('User parameter:Plugins/parts_library').SetString('destination',np)
|
||||
FreeCAD.ParamGet('User parameter:Plugins/parts_library').SetString('destination',self.lineEdit_3.text())
|
||||
QtGui.QDialog.accept(self)
|
||||
|
||||
if QtCore.QDir(LIBRARYPATH).exists():
|
||||
|
|
Loading…
Add table
Reference in a new issue