diff options
author | q5sys <jt@obs-sec.com> | 2016-03-30 13:51:54 -0400 |
---|---|---|
committer | q5sys <jt@obs-sec.com> | 2016-03-30 13:51:54 -0400 |
commit | 9d0d7b7a4e0d5eaf17c6cb51e1dbe25af465d865 (patch) | |
tree | 9f70c82956b35d4488b72e804d7c434b99a7fc6f /lumina-fm/MainUI.cpp | |
parent | Update MainUI.cpp (diff) | |
download | lumina-9d0d7b7a4e0d5eaf17c6cb51e1dbe25af465d865.tar.gz lumina-9d0d7b7a4e0d5eaf17c6cb51e1dbe25af465d865.tar.bz2 lumina-9d0d7b7a4e0d5eaf17c6cb51e1dbe25af465d865.zip |
Update MainUI.cpp
Diffstat (limited to 'lumina-fm/MainUI.cpp')
-rw-r--r-- | lumina-fm/MainUI.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp index f72f34bf..48f7a6b2 100644 --- a/lumina-fm/MainUI.cpp +++ b/lumina-fm/MainUI.cpp @@ -32,6 +32,10 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ //Reset the UI to the previously used size (if possible) QSize orig = settings->value("preferences/MainWindowSize", QSize()).toSize(); if(!orig.isEmpty() && orig.isValid()){ + //Make sure the old size is larger than the default size hint + if(orig.width() < this->sizeHint().width()){ orig.setWidth(this->sizeHint().width()); } + if(orig.height() < this->sizeHint().height()){ orig.setHeight(this->sizeHint().height()); } + //initialize the non-ui widgets if(DEBUG){ qDebug() << " - Tab Bar Setup"; } tabBar = new QTabBar(this); |