[gnome-commander] GnomeCmdFileList: some speedups in file selection
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdFileList: some speedups in file selection
- Date: Sun, 14 Aug 2011 11:16:45 +0000 (UTC)
commit be94acf57ee90eb37c66c499fe378c20b75d1043
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Aug 14 13:15:38 2011 +0200
GnomeCmdFileList: some speedups in file selection
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 3f7af35..81afcfd 100755
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -469,6 +469,9 @@ 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)
@@ -487,9 +490,6 @@ 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]