[banshee] When user picks new sort column, sort ascending



commit 5099b34ba5760797fb8f5005e1c2ca73f1e3cd50
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Tue Jun 30 19:13:03 2009 -0500

    When user picks new sort column, sort ascending

 .../ListView/ListView_Interaction.cs               |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
index 24d5f8f..d744725 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
@@ -504,8 +504,8 @@ namespace Hyena.Data.Gui
                         case SortType.None:         sort_column.SortType = SortType.Ascending; break;
                     }
 
-                    // If we're switching from a different column, or we aren't reorderable, make sure sort type isn't None
-                    if ((sort_column != ColumnController.SortColumn || !IsEverReorderable) && sort_column.SortType == SortType.None) {
+                    // If we're switching to a different column or we aren't reorderable and the type is None, sort Ascending
+                    if (sort_column != ColumnController.SortColumn || (!IsEverReorderable && sort_column.SortType == SortType.None)) {
                         sort_column.SortType = SortType.Ascending;
                     }
 



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