Changed incrementProgressBar again slightly so that passing a blank string or None to the text will not update the text.

This commit is contained in:
Raoul Snyman 2010-08-24 17:31:33 +02:00
parent 70cd4bc700
commit 78889633f6
1 changed files with 2 additions and 1 deletions

View File

@ -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')