[totem] main: Avoid warning when state.ini doesn't exist
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Avoid warning when state.ini doesn't exist
- Date: Fri, 1 Jul 2011 09:49:08 +0000 (UTC)
commit 787887e14923a8391a1206f3e1b4e852533a3d3c
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 1 10:35:10 2011 +0100
main: Avoid warning when state.ini doesn't exist
As there will not be a page_id to reset to.
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 d6edbc7..ff48d58 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]