GUI: Fixed cannot delete rtabmap.tmp.db error when closing and if database is in memory.

This commit is contained in:
matlabbe
2016-09-07 20:15:30 -04:00
parent d3173d8533
commit d252b1fb13

View File

@@ -3138,7 +3138,7 @@ void MainWindow::processRtabmapEventInit(int status, const QString & info)
{
UINFO("Deleted temporary database \"%s\".", _newDatabasePath.toStdString().c_str());
}
else
else if(!uStr2Bool(_preferencesDialog->getAllParameters().at(Parameters::kDbSqlite3InMemory())))
{
UERROR("Temporary database \"%s\" could not be deleted.", _newDatabasePath.toStdString().c_str());
}