Add waiting cursor while searching.

This commit is contained in:
Patrick Zimmermann 2013-04-18 20:19:43 +02:00
parent 0840480ef2
commit ae5869e366

View File

@ -151,6 +151,7 @@ class DuplicateSongRemovalForm(OpenLPWizard):
# Hide back button. # Hide back button.
self.button(QtGui.QWizard.BackButton).hide() self.button(QtGui.QWizard.BackButton).hide()
if page_id == self.searching_page_id: if page_id == self.searching_page_id:
self.application.set_busy_cursor()
self.button(QtGui.QWizard.NextButton).hide() self.button(QtGui.QWizard.NextButton).hide()
# Search duplicate songs. # Search duplicate songs.
max_songs = self.plugin.manager.get_object_count(Song) max_songs = self.plugin.manager.get_object_count(Song)
@ -177,6 +178,7 @@ class DuplicateSongRemovalForm(OpenLPWizard):
self.notify_no_duplicates() self.notify_no_duplicates()
else: else:
self.button(QtGui.QWizard.NextButton).show() self.button(QtGui.QWizard.NextButton).show()
self.application.set_normal_cursor()
elif page_id == self.review_page_id: elif page_id == self.review_page_id:
self.process_current_duplicate_entry() self.process_current_duplicate_entry()