mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-15 07:50:20 +08:00
updated default Source database directory to working directory when empty.
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1934 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -1713,7 +1713,12 @@ void PreferencesDialog::selectSourceDatabase(bool user)
|
|||||||
{
|
{
|
||||||
ULOGGER_DEBUG("");
|
ULOGGER_DEBUG("");
|
||||||
|
|
||||||
QString path = QFileDialog::getOpenFileName(this, tr("Select file"), _ui->source_database_lineEdit_path->text(), tr("RTAB-Map database files (*.db)"));
|
QString dir = _ui->source_database_lineEdit_path->text();
|
||||||
|
if(dir.isEmpty())
|
||||||
|
{
|
||||||
|
dir = getWorkingDirectory();
|
||||||
|
}
|
||||||
|
QString path = QFileDialog::getOpenFileName(this, tr("Select file"), dir, tr("RTAB-Map database files (*.db)"));
|
||||||
QFile file(path);
|
QFile file(path);
|
||||||
if(!path.isEmpty() && file.exists())
|
if(!path.isEmpty() && file.exists())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user