aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/FileTreeView.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-01-26 19:51:16 +0000
committersaturneric <[email protected]>2025-01-26 19:51:16 +0000
commitbd0bfe63e715439f9de6562d7abc862b9ae6a9fc (patch)
treefc15f306b73790c4a650f0a641a3d3c69417ebed /src/ui/widgets/FileTreeView.cpp
parentfeat: users can choose which crypto tool bar buttons are displayed (diff)
downloadGpgFrontend-bd0bfe63e715439f9de6562d7abc862b9ae6a9fc.tar.gz
GpgFrontend-bd0bfe63e715439f9de6562d7abc862b9ae6a9fc.zip
feat: allow changing sort options by ui at file page
Diffstat (limited to 'src/ui/widgets/FileTreeView.cpp')
-rw-r--r--src/ui/widgets/FileTreeView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/widgets/FileTreeView.cpp b/src/ui/widgets/FileTreeView.cpp
index 616cffb4..20078e7c 100644
--- a/src/ui/widgets/FileTreeView.cpp
+++ b/src/ui/widgets/FileTreeView.cpp
@@ -45,6 +45,7 @@ FileTreeView::FileTreeView(QWidget* parent, const QString& target_path)
this->setModel(dir_model_);
this->setColumnWidth(0, 320);
this->sortByColumn(0, Qt::AscendingOrder);
+ this->setSortingEnabled(true);
current_path_ = dir_model_->rootPath();
slot_create_popup_menu();