[totem] main: Don't restore anything if session save is disabled



commit b67b31b5c25c1358169523003701bde99dbd70a4
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 11 13:17:52 2013 +0100

    main: Don't restore anything if session save is disabled

 src/totem-session.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-session.c b/src/totem-session.c
index 1580749..8956e56 100644
--- a/src/totem-session.c
+++ b/src/totem-session.c
@@ -45,6 +45,9 @@ totem_session_try_restore (Totem *totem)
        char *uri;
        char *mrl, *subtitle;
 
+       if (totem_playlist_get_save (totem->playlist) == FALSE)
+               return FALSE;
+
        totem_signal_block_by_data (totem->playlist, totem);
 
        /* Possibly the only place in Totem where it makes sense to add an MRL to the playlist synchronously, 
since we haven't yet entered


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]