diff options
author | Bastien Nocera <hadess@hadess.net> | 2011-07-01 10:35:10 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2011-07-01 10:48:01 +0100 |
commit | 787887e14923a8391a1206f3e1b4e852533a3d3c (patch) | |
tree | f407fa1a8adf437916b6831ecf6de57562dbbb8f /src/totem-sidebar.c | |
parent | 287d76402b0be6fe7d704a4b333b2b6d13334767 (diff) | |
download | totem-787887e14923a8391a1206f3e1b4e852533a3d3c.tar.gz |
main: Avoid warning when state.ini doesn't exist
As there will not be a page_id to reset to.
Diffstat (limited to 'src/totem-sidebar.c')
-rw-r--r-- | src/totem-sidebar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/totem-sidebar.c b/src/totem-sidebar.c index d6edbc711..ff48d582d 100644 --- a/src/totem-sidebar.c +++ b/src/totem-sidebar.c @@ -297,6 +297,9 @@ totem_sidebar_set_current_page (Totem *totem, { int page_num; + if (page_id == NULL) + return; + page_num = get_page_num_for_name (totem, page_id); if (page_num == -1) { |