mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-12 22:40:19 +08:00
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:
@@ -49,6 +49,7 @@ int main(int argc, char* argv[])
|
||||
/* Start thread's task */
|
||||
mainWindow->showNormal();
|
||||
|
||||
rtabmap->setWorkingDirectory(mainWindow->getWorkingDirectory().toStdString());
|
||||
rtabmap->start();
|
||||
|
||||
// Now wait for application to finish
|
||||
|
||||
@@ -73,6 +73,8 @@ public:
|
||||
MainWindow(PreferencesDialog * prefDialog = 0, QWidget * parent = 0);
|
||||
~MainWindow();
|
||||
|
||||
QString getWorkingDirectory() const;
|
||||
|
||||
public slots:
|
||||
void changeState(MainWindow::State state);
|
||||
|
||||
|
||||
@@ -1092,6 +1092,11 @@ void MainWindow::deleteMemory()
|
||||
this->clearTheCache();
|
||||
}
|
||||
|
||||
QString MainWindow::getWorkingDirectory() const
|
||||
{
|
||||
return _preferencesDialog->getWorkingDirectory();
|
||||
}
|
||||
|
||||
void MainWindow::openWorkingDirectory()
|
||||
{
|
||||
QString filePath = _preferencesDialog->getWorkingDirectory();
|
||||
|
||||
Reference in New Issue
Block a user