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():