From 9e39a2c7877b5901355e5acd5fd0b6ed82cbb788 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 25 Mar 2015 11:31:21 -0700 Subject: [PATCH] UI: Use setGeometry to restore saved dimensions There was an issue where the position/size would keep changing every time the program opened/closed, was due to the fact that we were not calling setGeometry to restore the position/size. --- obs/window-basic-main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index e69663969..ca35692b7 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -98,8 +98,7 @@ OBSBasic::OBSBasic(QWidget *parent) int posy = config_get_int(App()->GlobalConfig(), "MainWindow", "posy"); - resize(width, height); - move(posx, posy); + setGeometry(posx, posy, width, height); }