More on adding new seller during sale phase
This commit is contained in:
parent
fe7ddc5cf2
commit
bd23e2417c
2 changed files with 2 additions and 1 deletions
|
@ -249,7 +249,7 @@ unsigned int Database::storeSellers(std::vector<std::unique_ptr<Seller>>& seller
|
||||||
retCode = sqlite3_step(stmt);
|
retCode = sqlite3_step(stmt);
|
||||||
|
|
||||||
if (retCode != SQLITE_DONE) {
|
if (retCode != SQLITE_DONE) {
|
||||||
rollbackTransaction();
|
//rollbackTransaction();
|
||||||
std::string errMsg(sqlite3_errmsg(db_));
|
std::string errMsg(sqlite3_errmsg(db_));
|
||||||
sqlite3_finalize(stmt);
|
sqlite3_finalize(stmt);
|
||||||
throw std::runtime_error(errMsg);
|
throw std::runtime_error(errMsg);
|
||||||
|
|
|
@ -525,6 +525,7 @@ void MainWindow::onImportSalesJsonActionTriggered()
|
||||||
QMessageBox(QMessageBox::Icon::Warning, "Import nicht möglich", err.what(), QMessageBox::Ok,
|
QMessageBox(QMessageBox::Icon::Warning, "Import nicht möglich", err.what(), QMessageBox::Ok,
|
||||||
this)
|
this)
|
||||||
.exec();
|
.exec();
|
||||||
|
marketplace_->loadFromDb();
|
||||||
}
|
}
|
||||||
setSaleModel();
|
setSaleModel();
|
||||||
updateStatLabel();
|
updateStatLabel();
|
||||||
|
|
Loading…
Reference in a new issue