diff --git a/src/core/database.cpp b/src/core/database.cpp index 9529202..411fd10 100644 --- a/src/core/database.cpp +++ b/src/core/database.cpp @@ -223,7 +223,7 @@ unsigned int Database::storeSellers(std::vector>& 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); diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 46bc41c..5c586a6 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -503,6 +503,7 @@ void MainWindow::onImportSalesJsonActionTriggered() QMessageBox(QMessageBox::Icon::Warning, "Import nicht möglich", err.what(), QMessageBox::Ok, this) .exec(); + marketplace_->loadFromDb(); } setSaleModel(); }