From 04ca51333b6e5ad821dc8d2e9c9ec8122ff10dcc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 26 Sep 2010 09:10:05 -0600 Subject: [PATCH] Fix path too long message when restoring db --- src/calibre/gui2/main.py | 3 +-- src/calibre/library/restore.py | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py index 24ba7ef47c..d736835fd6 100644 --- a/src/calibre/gui2/main.py +++ b/src/calibre/gui2/main.py @@ -233,8 +233,7 @@ class GuiRunner(QObject): def show_splash_screen(self): self.splash_pixmap = QPixmap() self.splash_pixmap.load(I('library.png')) - self.splash_screen = QSplashScreen(self.splash_pixmap, - Qt.SplashScreen) + self.splash_screen = QSplashScreen(self.splash_pixmap) self.splash_screen.showMessage(_('Starting %s: Loading books...') % __appname__) self.splash_screen.show() diff --git a/src/calibre/library/restore.py b/src/calibre/library/restore.py index 48e66e508f..ec50a39aa0 100644 --- a/src/calibre/library/restore.py +++ b/src/calibre/library/restore.py @@ -22,6 +22,8 @@ NON_EBOOK_EXTENSIONS = frozenset([ class RestoreDatabase(LibraryDatabase2): + PATH_LIMIT = 10 + def set_path(self, *args, **kwargs): pass