tomboy r2052 - in trunk: . Tomboy



Author: sharm
Date: Sat Aug  2 15:14:33 2008
New Revision: 2052
URL: http://svn.gnome.org/viewvc/tomboy?rev=2052&view=rev

Log:
* Tomboy/RecentChanges.cs: Check for null widgets when computing
  SearchText.  Should fix bug #544996.

Modified:
   trunk/ChangeLog
   trunk/Tomboy/RecentChanges.cs

Modified: trunk/Tomboy/RecentChanges.cs
==============================================================================
--- trunk/Tomboy/RecentChanges.cs	(original)
+++ trunk/Tomboy/RecentChanges.cs	Sat Aug  2 15:14:33 2008
@@ -1369,6 +1369,10 @@
                 public string SearchText
                 {
                         get {
+				// Entry may be null if search window closes
+				// early (bug #544996).
+				if (find_combo == null || find_combo.Entry == null)
+					return null;
                                 string text = find_combo.Entry.Text;
                                 text = text.Trim ();
                                 if (text == String.Empty)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]