mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +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:
@@ -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