From 337170947290535c67e9628fe1ae73b1d73b165c Mon Sep 17 00:00:00 2001 From: jagannatharjun Date: Mon, 25 Jan 2021 13:35:22 +0530 Subject: [PATCH] Disable expand on double click in TorrentContentTreeView We hook our own actions on double click. Fixes #14269 --- src/gui/torrentcontenttreeview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/torrentcontenttreeview.cpp b/src/gui/torrentcontenttreeview.cpp index cdf29c133..0e4ab4329 100644 --- a/src/gui/torrentcontenttreeview.cpp +++ b/src/gui/torrentcontenttreeview.cpp @@ -64,6 +64,8 @@ namespace TorrentContentTreeView::TorrentContentTreeView(QWidget *parent) : QTreeView(parent) { + setExpandsOnDoubleClick(false); + // This hack fixes reordering of first column with Qt5. // https://github.com/qtproject/qtbase/commit/e0fc088c0c8bc61dbcaf5928b24986cd61a22777 QTableView unused;