forked from openlp/openlp
Used a temporary string due to string freeze, and included the song reindex as per Andreas' request.
This commit is contained in:
parent
3bb7f556c9
commit
82239abb92
@ -260,7 +260,7 @@ class SongsPlugin(Plugin):
|
|||||||
song_dbs.append(os.path.join(db_dir, sfile))
|
song_dbs.append(os.path.join(db_dir, sfile))
|
||||||
progress = QtGui.QProgressDialog(self.formparent)
|
progress = QtGui.QProgressDialog(self.formparent)
|
||||||
progress.setWindowModality(QtCore.Qt.WindowModal)
|
progress.setWindowModality(QtCore.Qt.WindowModal)
|
||||||
progress.setLabelText(translate('SongsPlugin', 'Importing songs...'))
|
progress.setLabelText(translate('OpenLP.Ui', 'Starting import...'))
|
||||||
progress.setCancelButton(None)
|
progress.setCancelButton(None)
|
||||||
progress.setRange(0, len(song_dbs))
|
progress.setRange(0, len(song_dbs))
|
||||||
progress.setMinimumDuration(0)
|
progress.setMinimumDuration(0)
|
||||||
@ -273,6 +273,7 @@ class SongsPlugin(Plugin):
|
|||||||
progress.setValue(len(song_dbs))
|
progress.setValue(len(song_dbs))
|
||||||
self.mediaItem.displayResultsSong(
|
self.mediaItem.displayResultsSong(
|
||||||
self.manager.get_all_objects(Song, order_by_ref=Song.search_title))
|
self.manager.get_all_objects(Song, order_by_ref=Song.search_title))
|
||||||
|
self.onToolsReindexItemTriggered()
|
||||||
|
|
||||||
def finalise(self):
|
def finalise(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user