GUI: Updated database file name message when closing a database

This commit is contained in:
Mathieu Labbe
2015-02-18 13:52:49 -05:00
parent 5a37393a45
commit 240b5ce9c6

View File

@@ -1732,7 +1732,7 @@ void MainWindow::processRtabmapEventInit(int status, const QString & info)
// Temp database used, automatically backup with unique name (timestamp)
QString newName = QDateTime::currentDateTime().toString("yyMMdd-hhmmss");
bool ok = false;
newName = QInputDialog::getText(this, tr("Save database?"), tr("Database name:"), QLineEdit::Normal, newName, &ok);
newName = QInputDialog::getText(this, tr("Save database"), tr("Database name (the database is deleted on cancel)"), QLineEdit::Normal, newName, &ok);
while(ok)
{
QString newPath = _preferencesDialog->getWorkingDirectory()+QDir::separator()+newName+".db";