From e6b883e212f9393c4c8f6b7201aae986de4de2d2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Aug 2014 10:53:14 +0530 Subject: [PATCH] Get rid of pointless guard against Qt < 4.7 --- src/calibre/gui2/search_box.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/calibre/gui2/search_box.py b/src/calibre/gui2/search_box.py index 905039e7f4..be10aead09 100644 --- a/src/calibre/gui2/search_box.py +++ b/src/calibre/gui2/search_box.py @@ -109,11 +109,7 @@ class SearchBox2(QComboBox): # {{{ if item not in items: items.append(item) self.addItems(items) - try: - self.line_edit.setPlaceholderText(help_text) - except: - # Using Qt < 4.7 - pass + self.line_edit.setPlaceholderText(help_text) self.colorize = colorize self.clear()