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 $
|
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 $
|
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.
|
* Save the edited playlist.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
bool
|
bool
|
||||||
SimplePlaylistManagementWindow :: savePlaylist (void) throw ()
|
SimplePlaylistManagementWindow :: savePlaylist(bool reopen) throw ()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
Ptr<Playlist>::Ref playlist
|
Ptr<Playlist>::Ref playlist
|
||||||
|
@ -267,7 +267,9 @@ SimplePlaylistManagementWindow :: savePlaylist (void) throw ()
|
||||||
|
|
||||||
playlist->setTitle(title);
|
playlist->setTitle(title);
|
||||||
gLiveSupport->savePlaylist();
|
gLiveSupport->savePlaylist();
|
||||||
|
if (reopen) {
|
||||||
gLiveSupport->openPlaylistForEditing(playlist->getId());
|
gLiveSupport->openPlaylistForEditing(playlist->getId());
|
||||||
|
}
|
||||||
isPlaylistModified = false;
|
isPlaylistModified = false;
|
||||||
|
|
||||||
Ptr<Glib::ustring>::Ref statusText = formatMessage(
|
Ptr<Glib::ustring>::Ref statusText = formatMessage(
|
||||||
|
@ -289,7 +291,7 @@ SimplePlaylistManagementWindow :: savePlaylist (void) throw ()
|
||||||
void
|
void
|
||||||
SimplePlaylistManagementWindow :: onSaveButtonClicked(void) throw ()
|
SimplePlaylistManagementWindow :: onSaveButtonClicked(void) throw ()
|
||||||
{
|
{
|
||||||
savePlaylist();
|
savePlaylist(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -319,7 +321,7 @@ SimplePlaylistManagementWindow :: onCloseButtonClicked(void) throw ()
|
||||||
case DialogWindow::noButton: cancelPlaylist();
|
case DialogWindow::noButton: cancelPlaylist();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DialogWindow::yesButton: if (savePlaylist()) {
|
case DialogWindow::yesButton: if (savePlaylist(false)) {
|
||||||
closeWindow();
|
closeWindow();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: fgerlits $
|
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 $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/SimplePlaylistManagementWindow.h,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -88,7 +88,7 @@ using namespace LiveSupport::Widgets;
|
||||||
* </code></pre>
|
* </code></pre>
|
||||||
*
|
*
|
||||||
* @author $Author: fgerlits $
|
* @author $Author: fgerlits $
|
||||||
* @version $Revision: 1.13 $
|
* @version $Revision: 1.14 $
|
||||||
*/
|
*/
|
||||||
class SimplePlaylistManagementWindow : public WhiteWindow,
|
class SimplePlaylistManagementWindow : public WhiteWindow,
|
||||||
public LocalizedObject
|
public LocalizedObject
|
||||||
|
@ -245,10 +245,12 @@ class SimplePlaylistManagementWindow : public WhiteWindow,
|
||||||
/**
|
/**
|
||||||
* Save the edited playlist.
|
* 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.
|
* @return true if the playlist was saved successully.
|
||||||
*/
|
*/
|
||||||
virtual bool
|
virtual bool
|
||||||
savePlaylist(void) throw ();
|
savePlaylist(bool reopen) throw ();
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -258,7 +260,7 @@ class SimplePlaylistManagementWindow : public WhiteWindow,
|
||||||
* Lists one playlist entry per row.
|
* Lists one playlist entry per row.
|
||||||
*
|
*
|
||||||
* @author $Author: fgerlits $
|
* @author $Author: fgerlits $
|
||||||
* @version $Revision: 1.13 $
|
* @version $Revision: 1.14 $
|
||||||
*/
|
*/
|
||||||
class ModelColumns : public ZebraTreeModelColumnRecord
|
class ModelColumns : public ZebraTreeModelColumnRecord
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue