mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit metadata dialog: Disable OK button while results are being downloaded.
Fixes #1213397 [AttributeError](https://bugs.launchpad.net/calibre/+bug/1213397)
This commit is contained in:
parent
c9867cd599
commit
986f8b467e
@ -1012,6 +1012,7 @@ class FullFetch(QDialog): # {{{
|
||||
self.next_button.setIcon(QIcon(I('ok.png')))
|
||||
self.next_button.clicked.connect(self.next_clicked)
|
||||
self.ok_button = self.bb.button(self.bb.Ok)
|
||||
self.ok_button.setEnabled(False)
|
||||
self.ok_button.clicked.connect(self.ok_clicked)
|
||||
self.prev_button = self.bb.addButton(_('Back'), self.bb.ActionRole)
|
||||
self.prev_button.setIcon(QIcon(I('back.png')))
|
||||
@ -1080,6 +1081,7 @@ class FullFetch(QDialog): # {{{
|
||||
|
||||
def identify_results_found(self):
|
||||
self.next_button.setEnabled(True)
|
||||
self.ok_button.setEnabled(True)
|
||||
|
||||
def next_clicked(self, *args):
|
||||
gprefs['metadata_single_gui_geom'] = bytearray(self.saveGeometry())
|
||||
|
Loading…
x
Reference in New Issue
Block a user