[gnome-commander/ConfigurableFileListColumns: 24/26] Don't do anything if the column header with icons is clicked



commit c6abce779dca12fa47373c3abd55b544a0096b8a
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sat May 11 19:03:23 2019 +0200

    Don't do anything if the column header with icons is clicked

 src/gnome-cmd-file-list.cc | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 577ccb3c..ebc1b027 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -1188,6 +1188,10 @@ static gint sort_by_group (GnomeCmdFile *f1, GnomeCmdFile *f2, GnomeCmdFileList
 
     auto actualColumnId = gnome_cmd_data.fileListColumnLayouts[col].position;
     fl->priv->sort_func = file_list_column[actualColumnId].sort_func;
+    if (actualColumnId == GnomeCmdFileList::COLUMN_ICON)
+    {
+        return;
+    }
     fl->priv->current_col = col;
     update_column_sort_arrows (fl);
 


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