Revert resize column because application crashes

This commit is contained in:
Martin Brodbeck 2019-04-05 15:10:23 +02:00
parent 1797a860d1
commit d3e56e629d

View file

@ -43,7 +43,8 @@ MainWindow::MainWindow()
setWindowTitle("KIMA2 - Kasse Nr. " + QSettings().value("global/cashPointNo").toString());
ui_.salesView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
// Revert this because the application crashes during QApplication::quit
//ui_.salesView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
setSaleModel();
connect(ui_.actionQuit, &QAction::triggered, qApp, QApplication::quit);
@ -172,6 +173,7 @@ void MainWindow::setSaleModel()
ui_.salesView->setModel(new SaleModel(getMarketplace(), ui_.salesView));
ui_.salesView->setColumnHidden(2, true);
ui_.salesView->resizeColumnToContents(0);
ui_.salesView->resizeColumnToContents(1);
ui_.printSaleReceiptButton->setEnabled(false);
ui_.cancelSaleButton->setEnabled(false);