From 78889633f67279ba75a5d379de9e6e144b1e8903 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Tue, 24 Aug 2010 17:31:33 +0200 Subject: [PATCH] Changed incrementProgressBar again slightly so that passing a blank string or None to the text will not update the text. --- openlp/plugins/songs/forms/songimportform.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/songs/forms/songimportform.py b/openlp/plugins/songs/forms/songimportform.py index 53b0a9804..35829d7e6 100644 --- a/openlp/plugins/songs/forms/songimportform.py +++ b/openlp/plugins/songs/forms/songimportform.py @@ -336,8 +336,9 @@ class ImportWizardForm(QtGui.QWizard, Ui_SongImportWizard): def incrementProgressBar(self, status_text, increment=1): log.debug(u'IncrementBar %s', status_text) - if increment > 0: + if status_text: self.importProgressLabel.setText(status_text) + if increment > 0: self.importProgressBar.setValue(self.importProgressBar.value() + increment) Receiver.send_message(u'openlp_process_events')