More on adding new seller during sale phase

This commit is contained in:
Martin Brodbeck 2018-10-01 12:19:26 +02:00
parent fe7ddc5cf2
commit bd23e2417c
2 changed files with 2 additions and 1 deletions

View file

@ -249,7 +249,7 @@ unsigned int Database::storeSellers(std::vector<std::unique_ptr<Seller>>& seller
retCode = sqlite3_step(stmt);
if (retCode != SQLITE_DONE) {
rollbackTransaction();
//rollbackTransaction();
std::string errMsg(sqlite3_errmsg(db_));
sqlite3_finalize(stmt);
throw std::runtime_error(errMsg);

View file

@ -525,6 +525,7 @@ void MainWindow::onImportSalesJsonActionTriggered()
QMessageBox(QMessageBox::Icon::Warning, "Import nicht möglich", err.what(), QMessageBox::Ok,
this)
.exec();
marketplace_->loadFromDb();
}
setSaleModel();
updateStatLabel();