now the playlist editor window is cleaned after saving a playlist
This commit is contained in:
parent
59c691ea39
commit
bede8fd94b
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.15 $
|
||||
Version : $Revision: 1.16 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/GLiveSupport.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -498,14 +498,16 @@ GLiveSupport :: savePlaylist(void)
|
|||
storage->savePlaylist(sessionId, editedPlaylist);
|
||||
|
||||
Ptr<Playlist>::Ref playlist = storage->getPlaylist(sessionId,
|
||||
editedPlaylist->getId());
|
||||
editedPlaylist->getId());
|
||||
|
||||
// add the saved playlist to the DJ Bag, and update it
|
||||
// TODO: if already in the DJ bag, don't add, just pop it to the front
|
||||
djBagContents->push_front(editedPlaylist);
|
||||
djBagContents->push_front(playlist);
|
||||
masterPanel->updateDjBagWindow();
|
||||
|
||||
return editedPlaylist;
|
||||
editedPlaylist.reset();
|
||||
|
||||
return playlist;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.5 $
|
||||
Version : $Revision: 1.6 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/SimplePlaylistManagementWindow.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -164,6 +164,10 @@ SimplePlaylistManagementWindow :: onSaveButtonClicked (void) throw ()
|
|||
statusBar->set_text(*statusText);
|
||||
|
||||
gLiveSupport->releaseEditedPlaylist();
|
||||
|
||||
// clean the entry fields
|
||||
nameEntry->set_text("");
|
||||
entriesModel->clear();
|
||||
} catch (XmlRpcException &e) {
|
||||
statusBar->set_text(e.what());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue