Skip to content

Commit

Permalink
Mods for 1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rklasky committed Sep 27, 2022
1 parent e59b633 commit 1b56da9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
34 changes: 30 additions & 4 deletions MSSPM_GuiEstimation/nmfEstimationTab06.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,7 @@ nmfEstimation_Tab6::saveInitialValuesAndRangesTable()
}
}
saveCmd = saveCmd.substr(0,saveCmd.size()-1);
//std::cout << "saveCmd: " << saveCmd << std::endl;
errorMsg = m_DatabasePtr->nmfUpdateDatabase(saveCmd);
if (nmfUtilsQt::isAnError(errorMsg)) {
m_Logger->logMsg(nmfConstants::Error,"nmfEstimation_Tab6::saveInitialValuesAndRangesTable: Write table error: " + errorMsg);
Expand Down Expand Up @@ -1374,15 +1375,40 @@ nmfEstimation_Tab6::callback_SavePB()
bool loadOK = loadInitialValuesAndRangesForEditableCells();
if (loadOK) {
saveInitialValuesAndRangesTable();
QApplication::restoreOverrideCursor();
QMessageBox::information(Estimation_Tabs,"Save",
"\nSuccessful save of table: "+QString::fromStdString(nmfConstantsMSSPM::TableCovariateAssignment),
QMessageBox::Ok);
// QApplication::restoreOverrideCursor();
// QMessageBox::information(Estimation_Tabs,"Save",
// "\nSuccessful save of table: "+QString::fromStdString(nmfConstantsMSSPM::TableCovariateInitialValuesAndRanges),
// QMessageBox::Ok);
}
QApplication::restoreOverrideCursor();
QMessageBox::information(Estimation_Tabs,"Save",
"\nSuccessful save of table: "+QString::fromStdString(nmfConstantsMSSPM::TableCovariateAssignment),
QMessageBox::Ok);

// Call reload callback
loadWidgets(); // Needed to ensure that after loading a new model, all of the covariate tabs load properly and the estimation runs properly
} else {
QApplication::restoreOverrideCursor();
QMessageBox::information(Estimation_Tabs,"Save",
"\nCould not save table: "+QString::fromStdString(nmfConstantsMSSPM::TableCovariateAssignment),
QMessageBox::Ok);
}
} else if (Estimation_Tab6_InitialValuesTV->isVisible()) {
ok = saveInitialValuesAndRangesTable();
if (ok) {
saveCovariateAssignmentTable();

ok = saveCovariateAssignmentTable();
if (ok) {
initializeInitialValuesAndRangesTable();
bool loadOK = loadInitialValuesAndRangesForEditableCells();
QApplication::restoreOverrideCursor();
QMessageBox::information(Estimation_Tabs,"Save",
"\nSuccessful save of table: "+QString::fromStdString(nmfConstantsMSSPM::TableCovariateAssignment),
QMessageBox::Ok);
}


QApplication::restoreOverrideCursor();
QMessageBox::information(Estimation_Tabs,"Save",
"\nSuccessful save of table: "+QString::fromStdString(nmfConstantsMSSPM::TableCovariateInitialValuesAndRanges),
Expand Down
2 changes: 1 addition & 1 deletion MSSPM_Main/nmfMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,7 @@ void
nmfMainWindow::menu_about()
{
QString name = "Multi-Species Surplus Production Model";
QString version = "MSSPM v1.3.3 ";
QString version = "MSSPM v1.3.4 ";
QString specialAcknowledgement = "";
QString cppVersion = "C++??";
QString mysqlVersion = "?";
Expand Down

0 comments on commit 1b56da9

Please sign in to comment.