Mercurial > hg > sonic-visualiser
changeset 319:cb189d3816e5
* Avoid resizing the window on file load to larger than the available screen
size
author | Chris Cannam |
---|---|
date | Thu, 19 Mar 2009 15:50:59 +0000 |
parents | 75c3ab874c8e |
children | dfb586b4d50d |
files | main/main.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/main/main.cpp Tue Mar 17 10:47:48 2009 +0000 +++ b/main/main.cpp Thu Mar 19 15:50:59 2009 +0000 @@ -321,7 +321,7 @@ settings.beginGroup("MainWindow"); QSize size = settings.value("size", QSize(width, height)).toSize(); - gui->resize(size); + gui->resizeConstrained(size); if (settings.contains("position")) { QRect prevrect(settings.value("position").toPoint(), size); if (!(available & prevrect).isEmpty()) {