Setup rtabmap working directory on launch (so delete action works on startup even if the working directory is not the default one)

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@293 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2011-06-30 17:48:14 +00:00
parent 708d243d96
commit e75f0bff66
3 changed files with 8 additions and 0 deletions

View File

@@ -73,6 +73,8 @@ public:
MainWindow(PreferencesDialog * prefDialog = 0, QWidget * parent = 0);
~MainWindow();
QString getWorkingDirectory() const;
public slots:
void changeState(MainWindow::State state);

View File

@@ -1092,6 +1092,11 @@ void MainWindow::deleteMemory()
this->clearTheCache();
}
QString MainWindow::getWorkingDirectory() const
{
return _preferencesDialog->getWorkingDirectory();
}
void MainWindow::openWorkingDirectory()
{
QString filePath = _preferencesDialog->getWorkingDirectory();