fix: update if new size is larger
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
73d8343914
commit
8cb8273e67
@ -113,7 +113,7 @@ void ProgressDialog::updateSize()
|
|||||||
|
|
||||||
QSize newSize = this->size();
|
QSize newSize = this->size();
|
||||||
// if the current window is too small
|
// if the current window is too small
|
||||||
if ((lastSize != minSize) && (lastSize.height() < minSize.height()))
|
if ((lastSize != minSize) && (lastSize.height() < newSize.height()))
|
||||||
{
|
{
|
||||||
QSize sizeDiff = lastSize - newSize; // last size was smaller, the results should be negative
|
QSize sizeDiff = lastSize - newSize; // last size was smaller, the results should be negative
|
||||||
// center on old position after resize
|
// center on old position after resize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user