diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index e9d2252..1e63ea8 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -43,11 +43,10 @@ MainWindow::MainWindow() setWindowTitle("KIMA2 - Kasse Nr. " + QSettings().value("global/cashPointNo").toString()); - // Revert this because the application crashes during QApplication::quit - //ui_.salesView->header()->setSectionResizeMode(QHeaderView::ResizeToContents); + ui_.salesView->header()->setSectionResizeMode(QHeaderView::ResizeToContents); setSaleModel(); - connect(ui_.actionQuit, &QAction::triggered, qApp, QApplication::quit); + connect(ui_.actionQuit, &QAction::triggered, qApp, QApplication::closeAllWindows, Qt::QueuedConnection); connect(ui_.newAction, &QAction::triggered, this, [=]() { if (marketplace_->getSellers().size() == 0 && marketplace_->getSales().size() == 0) { return;