From fc599043699940c4e2549654f54785f0d3ed6a90 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 19 Apr 2009 15:46:25 -0700 Subject: [PATCH] IGN:Now that we use OpenLibrary for covers. Remove password dialog for LibraryThing --- src/calibre/gui2/dialogs/metadata_single.py | 14 ++++++-------- src/calibre/gui2/dialogs/metadata_single.ui | 13 +------------ 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/src/calibre/gui2/dialogs/metadata_single.py b/src/calibre/gui2/dialogs/metadata_single.py index 1a2f2d3129..05756407b3 100644 --- a/src/calibre/gui2/dialogs/metadata_single.py +++ b/src/calibre/gui2/dialogs/metadata_single.py @@ -25,7 +25,6 @@ from calibre import islinux from calibre.ebooks.metadata.meta import get_metadata from calibre.utils.config import prefs from calibre.customize.ui import run_plugins_on_import -from calibre.gui2 import config as gui_conf class CoverFetcher(QThread): @@ -289,7 +288,6 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog): self.series_index.setValue(self.db.series_index(row)) QObject.connect(self.series, SIGNAL('currentIndexChanged(int)'), self.enable_series_index) QObject.connect(self.series, SIGNAL('editTextChanged(QString)'), self.enable_series_index) - QObject.connect(self.password_button, SIGNAL('clicked()'), self.change_password) self.show() height_of_rest = self.frameGeometry().height() - self.cover.height() @@ -377,15 +375,15 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog): def fetch_cover(self): isbn = unicode(self.isbn.text()).strip() - d = self.lt_password_dialog() - if not gui_conf['asked_library_thing_password'] and \ - (not d.username() or not d.password()): - d.exec_() - gui_conf['asked_library_thing_password'] = True + #d = self.lt_password_dialog() + #if not gui_conf['asked_library_thing_password'] and \ + # (not d.username() or not d.password()): + # d.exec_() + # gui_conf['asked_library_thing_password'] = True self.fetch_cover_button.setEnabled(False) self.setCursor(Qt.WaitCursor) title, author = map(unicode, (self.title.text(), self.authors.text())) - self.cover_fetcher = CoverFetcher(d.username(), d.password(), isbn, + self.cover_fetcher = CoverFetcher(None, None, isbn, self.timeout, title, author) self.cover_fetcher.start() self._hangcheck = QTimer(self) diff --git a/src/calibre/gui2/dialogs/metadata_single.ui b/src/calibre/gui2/dialogs/metadata_single.ui index 5772609de6..2c4ab859a3 100644 --- a/src/calibre/gui2/dialogs/metadata_single.ui +++ b/src/calibre/gui2/dialogs/metadata_single.ui @@ -589,17 +589,7 @@ - Download &cover image - - - - - - - Change the username and/or password for your account at LibraryThing.com - - - Change &password + Download &cover @@ -655,7 +645,6 @@ comments fetch_metadata_button fetch_cover_button - password_button formats add_format_button remove_format_button