gnome-commander r1849 - in branches/gcmd-1-3: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1849 - in branches/gcmd-1-3: . src
- Date: Mon, 16 Jun 2008 22:50:46 +0000 (UTC)
Author: epiotr
Date: Mon Jun 16 22:50:46 2008
New Revision: 1849
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1849&view=rev
Log:
Fix for problem when re-sorting (keep selection visible)
Modified:
branches/gcmd-1-3/ChangeLog
branches/gcmd-1-3/src/gnome-cmd-file-list.cc
Modified: branches/gcmd-1-3/src/gnome-cmd-file-list.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-list.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-list.cc Mon Jun 16 22:50:46 2008
@@ -247,8 +247,6 @@
if (row == -1)
return;
- if (g_list_index (fl->priv->selected_files, finfo) != -1)
- return;
if (!gnome_cmd_data_get_use_ls_colors ())
gtk_clist_set_row_style (GTK_CLIST (fl), row, sel_list_style);
@@ -262,6 +260,9 @@
}
}
+ if (g_list_index (fl->priv->selected_files, finfo) != -1)
+ return;
+
gnome_cmd_file_ref (finfo);
fl->priv->selected_files = g_list_append (fl->priv->selected_files, finfo);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]