From d4e2b2153414946a4b210b46a9f613052439dbb0 Mon Sep 17 00:00:00 2001 From: paolo-sz Date: Sun, 25 Feb 2018 18:23:16 +0100 Subject: [PATCH] Fix Content widget misbehavior Starting from QT 5.10.1 Content widget is messed up and its settings are lost while restarting. Setting StretchLastSection property to false seems to solve the issue. (Closes #8439). --- src/gui/torrentcontenttreeview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/torrentcontenttreeview.cpp b/src/gui/torrentcontenttreeview.cpp index 9e8f1b14f..972bf53a7 100644 --- a/src/gui/torrentcontenttreeview.cpp +++ b/src/gui/torrentcontenttreeview.cpp @@ -43,6 +43,7 @@ TorrentContentTreeView::TorrentContentTreeView(QWidget *parent) QTableView unused; unused.setVerticalHeader(header()); header()->setParent(this); + header()->setStretchLastSection(false); unused.setVerticalHeader(new QHeaderView(Qt::Horizontal)); }