forked from openlp/openlp
fixed non camelCase attributes
This commit is contained in:
parent
b02ea132f6
commit
770d245534
@ -87,15 +87,15 @@ class SongMaintenanceForm(QtGui.QDialog, Ui_SongMaintenanceDialog):
|
|||||||
QtCore.SIGNAL(u'currentRowChanged(int)'),
|
QtCore.SIGNAL(u'currentRowChanged(int)'),
|
||||||
self.onBooksListRowChanged)
|
self.onBooksListRowChanged)
|
||||||
|
|
||||||
def exec_(self, from_song_edit=False):
|
def exec_(self, fromSongEdit=False):
|
||||||
"""
|
"""
|
||||||
Show the dialog.
|
Show the dialog.
|
||||||
|
|
||||||
``from_song_edit``
|
``fromSongEdit``
|
||||||
Indicates if the maintenance dialog has been opened from song edit
|
Indicates if the maintenance dialog has been opened from song edit
|
||||||
or from the media manager. Defaults to **False**.
|
or from the media manager. Defaults to **False**.
|
||||||
"""
|
"""
|
||||||
self.from_song_edit = from_song_edit
|
self.fromSongEdit = fromSongEdit
|
||||||
self.typeListWidget.setCurrentRow(0)
|
self.typeListWidget.setCurrentRow(0)
|
||||||
self.resetAuthors()
|
self.resetAuthors()
|
||||||
self.resetTopics()
|
self.resetTopics()
|
||||||
@ -283,7 +283,7 @@ class SongMaintenanceForm(QtGui.QDialog, Ui_SongMaintenanceDialog):
|
|||||||
if self.checkAuthor(author, True):
|
if self.checkAuthor(author, True):
|
||||||
if self.manager.save_object(author):
|
if self.manager.save_object(author):
|
||||||
self.resetAuthors()
|
self.resetAuthors()
|
||||||
if not self.from_song_edit:
|
if not self.fromSongEdit:
|
||||||
Receiver.send_message(u'songs_load_list')
|
Receiver.send_message(u'songs_load_list')
|
||||||
else:
|
else:
|
||||||
critical_error_message_box(
|
critical_error_message_box(
|
||||||
@ -382,7 +382,7 @@ class SongMaintenanceForm(QtGui.QDialog, Ui_SongMaintenanceDialog):
|
|||||||
Receiver.send_message(u'cursor_busy')
|
Receiver.send_message(u'cursor_busy')
|
||||||
merge(dbObject)
|
merge(dbObject)
|
||||||
reset()
|
reset()
|
||||||
if not self.from_song_edit:
|
if not self.fromSongEdit:
|
||||||
Receiver.send_message(u'songs_load_list')
|
Receiver.send_message(u'songs_load_list')
|
||||||
Receiver.send_message(u'cursor_normal')
|
Receiver.send_message(u'cursor_normal')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user