mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
...
This commit is contained in:
parent
70a2ec517e
commit
882d09b7e0
1 changed files with 3 additions and 2 deletions
|
|
@ -251,8 +251,9 @@ def sizeHint(self):
|
|||
|
||||
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…
Reference in a new issue