forked from openlp/openlp
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:
parent
70cd4bc700
commit
78889633f6
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user