diff options
-rw-r--r-- | src/loginform.cpp | 1 | ||||
-rw-r--r-- | src/mainwindow.cpp | 5 | ||||
-rw-r--r-- | src/mainwindow.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/loginform.cpp b/src/loginform.cpp index eecf34b..39cdf64 100644 --- a/src/loginform.cpp +++ b/src/loginform.cpp @@ -484,5 +484,6 @@ void LoginForm::setBrowserSize() this->resize(*f); this->setFixedSize(*f); this->setGeometry(pw, ph, f->width(), f->height()); + emit resized(); }); } diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 95d74de..b331da5 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -110,6 +110,11 @@ void MainWindow::reLayout() m_LoginForm->move(offsetX, offsetY); m_LoginForm->show(); newsX = m_LoginForm->geometry().right() + 5; + + QRect layout(offsetX, offsetY, m_ScreenRect.width(), m_ScreenRect.height()); + if (layout == m_lastRelayout) + return; + m_lastRelayout = layout; } // Banner diff --git a/src/mainwindow.h b/src/mainwindow.h index 3ea0e4a..53fd150 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -78,6 +78,7 @@ private: QSvgWidget *m_Banner; QList<QWidget*> m_DecoItems; QTextEdit *m_News; + QRect m_lastRelayout; }; #endif // MAINWINDOW_H |