[tomboy] Don't crash on startup on Win7 if there's no start note (bug #608779)
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tomboy] Don't crash on startup on Win7 if there's no start note (bug #608779)
- Date: Tue, 2 Feb 2010 14:57:13 +0000 (UTC)
commit 61f71527c01926bf8e8f77cc7a6edf2a83baa3fd
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Tue Feb 2 06:56:59 2010 -0800
Don't crash on startup on Win7 if there's no start note (bug #608779)
Tomboy/JumpListManager.cs | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/Tomboy/JumpListManager.cs b/Tomboy/JumpListManager.cs
index 20a5e63..4cdfac1 100644
--- a/Tomboy/JumpListManager.cs
+++ b/Tomboy/JumpListManager.cs
@@ -1,4 +1,4 @@
-//#if WIN32
+//#if WIN32
using System;
using System.Collections.Generic;
@@ -128,10 +128,12 @@ namespace Tomboy
// Add Start Here note
Note start_note = note_manager.FindByUri (NoteManager.StartNoteUri);
- IShellLink start_note_link = CreateShellLink (start_note.Title, tomboy_path, "--open-note " +
- NoteManager.StartNoteUri, icons_path + NoteIcon, -1);
- if (start_note_link != null)
- object_collection.AddObject (start_note_link);
+ if (start_note != null) {
+ IShellLink start_note_link = CreateShellLink (start_note.Title, tomboy_path, "--open-note " +
+ NoteManager.StartNoteUri, icons_path + NoteIcon, -1);
+ if (start_note_link != null)
+ object_collection.AddObject (start_note_link);
+ }
custom_destinationd_list.AppendCategory ("Recent Notes", (IObjectArray) object_collection);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]