[gnome-commander] Revert "GnomeCmdFileList: some speedups in file selection"



commit c07c70e804dc1fd4acfab33185c5ce23ae3c9a1a
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Wed Aug 17 00:09:52 2011 +0200

    Revert "GnomeCmdFileList: some speedups in file selection"
    
    This reverts commit be94acf57ee90eb37c66c499fe378c20b75d1043.

 src/gnome-cmd-file-list.cc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 81afcfd..3f7af35 100755
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -469,9 +469,6 @@ void GnomeCmdFileList::select_file(GnomeCmdFile *f, gint row)
     if (f->is_dotdot)
         return;
 
-    if (priv->selected_files.contain(f))
-        return;
-
     if (row == -1)
         row = get_row_from_file(f);
     if (row == -1)
@@ -490,6 +487,9 @@ void GnomeCmdFileList::select_file(GnomeCmdFile *f, gint row)
         }
     }
 
+    if (priv->selected_files.contain(f))
+        return;
+
     priv->selected_files.add(f);
 
     g_signal_emit (this, signals[FILES_CHANGED], 0);



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