More on adding new seller during sale phase

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

View File

@ -223,7 +223,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

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