Fix #6420 (Changing / creating libraries no longer possible in 0.7.13)

This commit is contained in:
Kovid Goyal 2010-08-06 22:45:42 -06:00
parent bd3048f3ab
commit b6e95c9219

View File

@ -79,7 +79,7 @@ class ChooseLibrary(QDialog, Ui_Dialog):
if not text: if not text:
return error_dialog(self, _('No location'), _('No location selected'), return error_dialog(self, _('No location'), _('No location selected'),
show=True) show=True)
loc = os.path.abspath() loc = os.path.abspath(text)
if not loc or not os.path.exists(loc) or not self.check_action(action, if not loc or not os.path.exists(loc) or not self.check_action(action,
loc): loc):
return return