mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
70a2ec517e
commit
882d09b7e0
@ -251,8 +251,9 @@ class ChooseLibrary(Dialog): # {{{
|
||||
|
||||
def current_changed(self):
|
||||
i = self.items.currentItem() or self.items.item(0)
|
||||
loc = i.data(Qt.UserRole)
|
||||
self.le.setText(loc)
|
||||
if i is not None:
|
||||
loc = i.data(Qt.UserRole)
|
||||
self.le.setText(loc)
|
||||
|
||||
def browse(self):
|
||||
d = choose_dir(self, 'choose_library_for_copy',
|
||||
|
Loading…
x
Reference in New Issue
Block a user