From 5a3b6fff82746fc008078c90d3ff1105238c1956 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 8 Apr 2019 10:49:49 +0200 Subject: [PATCH] Re-enable resize column on sales view --- src/gui/mainwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;