From 5b9e52906a5c8a5d3a0eb0edf4c949c824ff329d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 12 Apr 2016 06:41:31 +0530 Subject: [PATCH] ... --- src/calibre/gui2/layout.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/layout.py b/src/calibre/gui2/layout.py index 1cc9321348..ae17c8a30f 100644 --- a/src/calibre/gui2/layout.py +++ b/src/calibre/gui2/layout.py @@ -316,14 +316,12 @@ class MainWindowMixin(object): # {{{ smw.setAutoFillBackground(True) smw.setStyleSheet('QLabel { background-color: rgba(200, 200, 200, 200); color: black }') - def show_shutdown_message(self, message): + def show_shutdown_message(self, message=''): smw = self.shutdown_message_widget smw.setGeometry(0, 0, self.width(), self.height()) smw.setVisible(True) smw.raise_() - txt = smw.text() - txt += '\n' + message - smw.setText(txt) + smw.setText(_('

Shutting down

') + message) # Force processing the events needed to show the message QCoreApplication.processEvents() # }}}