From 165b377f45ffe24a8c1da4193b29a3f9e6d7be45 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 5 Sep 2015 13:36:59 +0200 Subject: [PATCH] GUI: re-size auto-columns after toggling column visibility --- src/mkvtoolnix-gui/util/header_view_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mkvtoolnix-gui/util/header_view_manager.cpp b/src/mkvtoolnix-gui/util/header_view_manager.cpp index 1abfaa599..daa75d7bd 100644 --- a/src/mkvtoolnix-gui/util/header_view_manager.cpp +++ b/src/mkvtoolnix-gui/util/header_view_manager.cpp @@ -177,6 +177,8 @@ HeaderViewManager::toggleColumn(int column) { headerView->setSectionHidden(column, !headerView->isSectionHidden(column)); saveState(); + + resizeViewColumnsToContents(d->treeView); } void