From d6e52d097e76315f0a719511eb29bb7365db0dd2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 18 Dec 2013 20:47:29 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/file_list.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/tweak_book/file_list.py b/src/calibre/gui2/tweak_book/file_list.py index 7af1fd8666..7d24bdb4fb 100644 --- a/src/calibre/gui2/tweak_book/file_list.py +++ b/src/calibre/gui2/tweak_book/file_list.py @@ -41,14 +41,14 @@ def name_is_ok(name, show_error): return show_error('') and False ext = name.rpartition('.')[-1] if not ext or ext == name: - return show_error(_('The file name must have an extension')) + return show_error(_('The file name must have an extension')) and False norm = name.replace('\\', '/') parts = name.split('/') for x in parts: if sanitize_file_name_unicode(x) != x: - return show_error(_('The file name contains invalid characters')) + return show_error(_('The file name contains invalid characters')) and False if current_container().has_name(norm): - return show_error(_('This file name already exists in the book')) + return show_error(_('This file name already exists in the book')) and False show_error('') return True