mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Synchronized "Edit database" parameters with tmp ini file used in Main app
This commit is contained in:
@@ -109,6 +109,7 @@ public:
|
||||
virtual ~PreferencesDialog();
|
||||
|
||||
virtual QString getIniFilePath() const;
|
||||
virtual QString getTmpIniFilePath() const;
|
||||
void init();
|
||||
void setCurrentPanelToSource();
|
||||
|
||||
@@ -296,8 +297,6 @@ protected:
|
||||
virtual void writeCameraSettings(const QString & filePath = QString()) const;
|
||||
virtual void writeCoreSettings(const QString & filePath = QString()) const;
|
||||
|
||||
virtual QString getTmpIniFilePath() const;
|
||||
|
||||
private:
|
||||
void readSettings(const QString & filePath = QString());
|
||||
void writeSettings(const QString & filePath = QString());
|
||||
|
||||
@@ -3009,7 +3009,7 @@ void MainWindow::editDatabase()
|
||||
QString path = QFileDialog::getOpenFileName(this, tr("Edit database..."), _preferencesDialog->getWorkingDirectory(), tr("RTAB-Map database files (*.db)"));
|
||||
if(!path.isEmpty())
|
||||
{
|
||||
DatabaseViewer * viewer = new DatabaseViewer(_preferencesDialog->getIniFilePath(), this);
|
||||
DatabaseViewer * viewer = new DatabaseViewer(_preferencesDialog->getTmpIniFilePath(), this);
|
||||
viewer->setWindowModality(Qt::WindowModal);
|
||||
viewer->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
viewer->showCloseButton();
|
||||
|
||||
Reference in New Issue
Block a user