Used a temporary string due to string freeze, and included the song reindex as per Andreas' request.

This commit is contained in:
Raoul Snyman 2011-03-14 20:34:48 +02:00
parent 3bb7f556c9
commit 82239abb92
1 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,7 @@ class SongsPlugin(Plugin):
song_dbs.append(os.path.join(db_dir, sfile))
progress = QtGui.QProgressDialog(self.formparent)
progress.setWindowModality(QtCore.Qt.WindowModal)
progress.setLabelText(translate('SongsPlugin', 'Importing songs...'))
progress.setLabelText(translate('OpenLP.Ui', 'Starting import...'))
progress.setCancelButton(None)
progress.setRange(0, len(song_dbs))
progress.setMinimumDuration(0)
@ -273,6 +273,7 @@ class SongsPlugin(Plugin):
progress.setValue(len(song_dbs))
self.mediaItem.displayResultsSong(
self.manager.get_all_objects(Song, order_by_ref=Song.search_title))
self.onToolsReindexItemTriggered()
def finalise(self):
"""