From 90d22564ae8782681fe414d1d31b0268ad384cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helge=20Nordg=C3=A5rd?= Date: Fri, 24 Sep 2021 22:27:24 +0200 Subject: [PATCH] Fikset bug #9 --- src/core/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/mainwindow.cpp b/src/core/mainwindow.cpp index be55497..e14a9ce 100644 --- a/src/core/mainwindow.cpp +++ b/src/core/mainwindow.cpp @@ -13,6 +13,7 @@ MainWindow::MainWindow(QWidget *parent) prosjekter = false; utlop = false; oppdaterUI(); + filLagret = true; innstillingDlg = new InnstillingDialog(this); connect(innstillingDlg, SIGNAL(rejected()), this, SLOT(barnDialogLukket())); @@ -283,7 +284,7 @@ void MainWindow::closeEvent(QCloseEvent *event) { */ void MainWindow::on_action_Avslutt_triggered() { - QApplication::quit(); + this->close(); } /* on_commandCustomers_clicked():