complete fixe

This commit is contained in:
Andreas Preikschat 2011-03-11 16:53:26 +01:00
parent f0379925bc
commit 7c7410a218

View File

@ -274,7 +274,6 @@ class SongMediaItem(MediaManagerItem):
def onNewClick(self): def onNewClick(self):
log.debug(u'onNewClick') log.debug(u'onNewClick')
self.editItem = None
self.edit_song_form.newSong() self.edit_song_form.newSong()
self.edit_song_form.exec_() self.edit_song_form.exec_()
@ -311,6 +310,7 @@ class SongMediaItem(MediaManagerItem):
item_id = (self.editItem.data(QtCore.Qt.UserRole)).toInt()[0] item_id = (self.editItem.data(QtCore.Qt.UserRole)).toInt()[0]
self.edit_song_form.loadSong(item_id, False) self.edit_song_form.loadSong(item_id, False)
self.edit_song_form.exec_() self.edit_song_form.exec_()
self.editItem = None
def onDeleteClick(self): def onDeleteClick(self):
""" """