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.master
parent
25bb8a444f
commit
8b68ccdc13
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue