[Monodevelop-patches-list] r550 - trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Jan 18 16:05:58 EST 2004
Author: pedroas
Date: 2004-01-18 16:05:57 -0500 (Sun, 18 Jan 2004)
New Revision: 550
Modified:
trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/SelectReferenceDialog.cs
Log:
Bugfix: avoid crashing when removing the last reference
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/SelectReferenceDialog.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/SelectReferenceDialog.cs 2004-01-18 20:16:23 UTC (rev 549)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/SelectReferenceDialog.cs 2004-01-18 21:05:57 UTC (rev 550)
@@ -65,7 +65,9 @@
get {
ArrayList referenceInformations = new ArrayList();
Gtk.TreeIter looping_iter;
- refTreeStore.GetIterFirst (out looping_iter);
+ if (refTreeStore.GetIterFirst (out looping_iter) == false) {
+ return referenceInformations;
+ }
do {
//Debug.Assert(item.Tag != null);
referenceInformations.Add(refTreeStore.GetValue(looping_iter, 3));
More information about the Monodevelop-patches-list
mailing list