Re-enable resize column on sales view

This commit is contained in:
Martin Brodbeck 2019-04-08 10:49:49 +02:00
parent b9ec6f983e
commit 5a3b6fff82

View file

@ -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;