fixed bug #1346
This commit is contained in:
parent
2bf8faeaef
commit
d5c62413ba
2 changed files with 13 additions and 9 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.28 $
|
||||
Version : $Revision: 1.29 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/SimplePlaylistManagementWindow.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -249,7 +249,7 @@ SimplePlaylistManagementWindow :: ~SimplePlaylistManagementWindow (void)
|
|||
* Save the edited playlist.
|
||||
*----------------------------------------------------------------------------*/
|
||||
bool
|
||||
SimplePlaylistManagementWindow :: savePlaylist (void) throw ()
|
||||
SimplePlaylistManagementWindow :: savePlaylist(bool reopen) throw ()
|
||||
{
|
||||
try {
|
||||
Ptr<Playlist>::Ref playlist
|
||||
|
@ -267,7 +267,9 @@ SimplePlaylistManagementWindow :: savePlaylist (void) throw ()
|
|||
|
||||
playlist->setTitle(title);
|
||||
gLiveSupport->savePlaylist();
|
||||
if (reopen) {
|
||||
gLiveSupport->openPlaylistForEditing(playlist->getId());
|
||||
}
|
||||
isPlaylistModified = false;
|
||||
|
||||
Ptr<Glib::ustring>::Ref statusText = formatMessage(
|
||||
|
@ -289,7 +291,7 @@ SimplePlaylistManagementWindow :: savePlaylist (void) throw ()
|
|||
void
|
||||
SimplePlaylistManagementWindow :: onSaveButtonClicked(void) throw ()
|
||||
{
|
||||
savePlaylist();
|
||||
savePlaylist(true);
|
||||
}
|
||||
|
||||
|
||||
|
@ -319,7 +321,7 @@ SimplePlaylistManagementWindow :: onCloseButtonClicked(void) throw ()
|
|||
case DialogWindow::noButton: cancelPlaylist();
|
||||
break;
|
||||
|
||||
case DialogWindow::yesButton: if (savePlaylist()) {
|
||||
case DialogWindow::yesButton: if (savePlaylist(false)) {
|
||||
closeWindow();
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.13 $
|
||||
Version : $Revision: 1.14 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/SimplePlaylistManagementWindow.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -88,7 +88,7 @@ using namespace LiveSupport::Widgets;
|
|||
* </code></pre>
|
||||
*
|
||||
* @author $Author: fgerlits $
|
||||
* @version $Revision: 1.13 $
|
||||
* @version $Revision: 1.14 $
|
||||
*/
|
||||
class SimplePlaylistManagementWindow : public WhiteWindow,
|
||||
public LocalizedObject
|
||||
|
@ -245,10 +245,12 @@ class SimplePlaylistManagementWindow : public WhiteWindow,
|
|||
/**
|
||||
* Save the edited playlist.
|
||||
*
|
||||
* @param reopen true if the playlist needs to be opened for
|
||||
* editing again after saving it.
|
||||
* @return true if the playlist was saved successully.
|
||||
*/
|
||||
virtual bool
|
||||
savePlaylist(void) throw ();
|
||||
savePlaylist(bool reopen) throw ();
|
||||
|
||||
|
||||
protected:
|
||||
|
@ -258,7 +260,7 @@ class SimplePlaylistManagementWindow : public WhiteWindow,
|
|||
* Lists one playlist entry per row.
|
||||
*
|
||||
* @author $Author: fgerlits $
|
||||
* @version $Revision: 1.13 $
|
||||
* @version $Revision: 1.14 $
|
||||
*/
|
||||
class ModelColumns : public ZebraTreeModelColumnRecord
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue