[banshee] Use Equals not == in CheckBox column



commit d8a2a76ebf59e408c0ca910537a61c8e942523d4
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Wed Jul 1 14:56:12 2009 -0500

    Use Equals not == in CheckBox column

 .../Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
index f24e976..80539bd 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
@@ -63,7 +63,7 @@ namespace Hyena.Data.Gui
                 return false;
             }
             
-            if (last_pressed_bound == BoundObjectParent) {
+            if (last_pressed_bound != null && last_pressed_bound.Equals (BoundObjectParent)) {
                 Value = !Value;
                 last_pressed_bound = null;
             }



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