Fixed ini configuration file encoding bug (unicode vs native, maybe only appeared on Linux)

git-svn-id: http://rtabmap.googlecode.com/svn/branches/0.3/rtabmap@91 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2011-06-09 16:00:45 +00:00
parent 9b4cf9cf5f
commit f6a782727f
2 changed files with 2 additions and 4 deletions

View File

@@ -204,7 +204,6 @@ PreferencesDialog::PreferencesDialog(QWidget * parent) :
_ui->treeView->expandToDepth(1);
_obsoletePanels = kPanelAll;
_initialized = true;
_progressDialog = new QProgressDialog(this);
_progressDialog->setWindowTitle(tr("Read parameters..."));
@@ -947,13 +946,14 @@ void PreferencesDialog::selectSource(Src src)
}
else
{
this->readSettings();
this->readSettingsBegin();
}
}
}
void PreferencesDialog::setParameter(const std::string & key, const std::string & value)
{
UDEBUG("%s=%s", key.c_str(), value.c_str());
QObject * obj = _ui->stackedWidget->findChild<QObject*>(key.c_str());
if(obj)
{