Fix a regression that broke moving libraries in 1.0

Fixes #1216401 [calibre, version 1.0.0 'function' object has no attribute 'exists_at'](https://bugs.launchpad.net/calibre/+bug/1216401)
This commit is contained in:
Kovid Goyal 2013-08-25 07:23:57 +05:30
parent 91755ac202
commit be776e5900

View File

@ -142,7 +142,7 @@ class MovedDialog(QDialog): # {{{
def accept(self): def accept(self):
newloc = unicode(self.loc.text()) newloc = unicode(self.loc.text())
if not db_class.exists_at(newloc): if not db_class().exists_at(newloc):
error_dialog(self, _('No library found'), error_dialog(self, _('No library found'),
_('No existing calibre library found at %s')%newloc, _('No existing calibre library found at %s')%newloc,
show=True) show=True)