mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Updated ImageView with GraphicsView mode disabled by default. Updated DataRecorder.
This commit is contained in:
@@ -1261,6 +1261,27 @@ bool PreferencesDialog::readCoreSettings(const QString & filePath)
|
||||
QString value = settings.value(key, "").toString();
|
||||
if(!value.isEmpty())
|
||||
{
|
||||
if(key.toStdString().compare(Parameters::kRtabmapWorkingDirectory()) == 0)
|
||||
{
|
||||
// The directory should exist if not the default one
|
||||
if(!QDir(value).exists() && value.compare(Parameters::defaultRtabmapWorkingDirectory().c_str()) != 0)
|
||||
{
|
||||
if(QDir(this->getWorkingDirectory().toStdString().c_str()).exists())
|
||||
{
|
||||
UWARN("Reading config: Not existing working directory \"%s\". Keeping old one (\"%s\").",
|
||||
value.toStdString().c_str(),
|
||||
this->getWorkingDirectory().toStdString().c_str());
|
||||
value = this->getWorkingDirectory();
|
||||
}
|
||||
else
|
||||
{
|
||||
UWARN("Reading config: Not existing working directory \"%s\". Using default one (\"%s\").",
|
||||
value.toStdString().c_str(),
|
||||
(*iter).second.c_str());
|
||||
value = (*iter).second.c_str();
|
||||
}
|
||||
}
|
||||
}
|
||||
this->setParameter(key.toStdString(), value.toStdString());
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user