This commit is contained in:
Kovid Goyal 2019-10-20 11:21:30 +05:30
parent 70a2ec517e
commit 882d09b7e0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -251,8 +251,9 @@ class ChooseLibrary(Dialog): # {{{
def current_changed(self): def current_changed(self):
i = self.items.currentItem() or self.items.item(0) i = self.items.currentItem() or self.items.item(0)
loc = i.data(Qt.UserRole) if i is not None:
self.le.setText(loc) loc = i.data(Qt.UserRole)
self.le.setText(loc)
def browse(self): def browse(self):
d = choose_dir(self, 'choose_library_for_copy', d = choose_dir(self, 'choose_library_for_copy',