tomboy r2072 - in trunk: . Tomboy
- From: sharm svn gnome org
- To: svn-commits-list gnome org
- Subject: tomboy r2072 - in trunk: . Tomboy
- Date: Fri, 8 Aug 2008 17:42:45 +0000 (UTC)
Author: sharm
Date: Fri Aug 8 17:42:45 2008
New Revision: 2072
URL: http://svn.gnome.org/viewvc/tomboy?rev=2072&view=rev
Log:
* Tomboy/RecentChanges.cs: Fix yet another potention NRE crash, which
occurred when closing the search window with an empty notebook
selected.
Modified:
trunk/ChangeLog
trunk/Tomboy/RecentChanges.cs
Modified: trunk/Tomboy/RecentChanges.cs
==============================================================================
--- trunk/Tomboy/RecentChanges.cs (original)
+++ trunk/Tomboy/RecentChanges.cs Fri Aug 8 17:42:45 2008
@@ -1283,7 +1283,8 @@
Gtk.TreeModel model;
Gtk.TreeIter iter;
- if (notebooksTree.Selection.GetSelected (out model, out iter) == false)
+ Gtk.TreeSelection selection = notebooksTree.Selection;
+ if (selection == null || selection.GetSelected (out model, out iter) == false)
return null; // Nothing selected
return model.GetValue (iter, 0) as Notebooks.Notebook;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]