From 8b68ccdc139528b440dd83b312191d64fdc5ea6e Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 27 Jul 2017 22:50:25 -0700 Subject: [PATCH] UI: Fix build issue with older linux Qt5 packages QMainWindow::resizeDocks isn't supported on certain long-term support distros (ubuntu trusty in particular), so instead just restore the starting state and don't try to recalculate the ideal positioning. --- UI/window-basic-main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 65b680b77..a65cc1558 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -5288,6 +5288,7 @@ void OBSBasic::on_resetUI_triggered() { restoreState(startingDockLayout); +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) int cx = width(); int cy = height(); @@ -5322,6 +5323,7 @@ void OBSBasic::on_resetUI_triggered() resizeDocks(docks, {cy, cy, cy, cy, cy}, Qt::Vertical); resizeDocks(docks, sizes, Qt::Horizontal); +#endif } void OBSBasic::on_lockUI_toggled(bool lock)