More on adding new seller during sale phase
This commit is contained in:
parent
2f83321484
commit
91f52df554
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -503,6 +503,7 @@ void MainWindow::onImportSalesJsonActionTriggered()
|
|||
QMessageBox(QMessageBox::Icon::Warning, "Import nicht möglich", err.what(), QMessageBox::Ok,
|
||||
this)
|
||||
.exec();
|
||||
marketplace_->loadFromDb();
|
||||
}
|
||||
setSaleModel();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue