Commit 29fa5e0b authored by Andreas Traczyk's avatar Andreas Traczyk

mainwindow: always set min/max window size when navigating

Change-Id: I2510226c13b3349a38a759bfd325cc61974a8f64
parent 4b4bfde4
...@@ -49,9 +49,6 @@ MainWindow::MainWindow(QWidget* parent) : ...@@ -49,9 +49,6 @@ MainWindow::MainWindow(QWidget* parent) :
{ {
ui->setupUi(this); ui->setupUi(this);
setMinimumSize(mainWindowMinWidth, mainWindowMinHeight);
setMaximumSize(QtMaxDimension, QtMaxDimension);
for (int i = 0; i < ui->navStack->count(); ++i) { for (int i = 0; i < ui->navStack->count(); ++i) {
if (auto navWidget = dynamic_cast<NavWidget*>(ui->navStack->widget(i))) { if (auto navWidget = dynamic_cast<NavWidget*>(ui->navStack->widget(i))) {
connect(navWidget, &NavWidget::NavigationRequested, connect(navWidget, &NavWidget::NavigationRequested,
...@@ -305,6 +302,9 @@ MainWindow::setWindowSize(ScreenEnum scr, bool firstUse) ...@@ -305,6 +302,9 @@ MainWindow::setWindowSize(ScreenEnum scr, bool firstUse)
if (scr == ScreenEnum::WizardScreen && !accountList.size()) { if (scr == ScreenEnum::WizardScreen && !accountList.size()) {
hide(); hide();
setFixedSize(wizardDialogWidth, wizardDialogHeight); setFixedSize(wizardDialogWidth, wizardDialogHeight);
} else {
setMinimumSize(mainWindowMinWidth, mainWindowMinHeight);
setMaximumSize(QtMaxDimension, QtMaxDimension);
} }
if (firstUse || !accountList.size()) { if (firstUse || !accountList.size()) {
setGeometry( setGeometry(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment