Suggest a schema name when attaching a database

See issue #1132.
This commit is contained in:
Martin Kleusberg
2017-10-05 23:21:37 +02:00
parent a5ebcbb55c
commit 1cd93ed045

View File

@@ -164,7 +164,9 @@ bool DBBrowserDB::attach(const QString& filename, QString attach_as)
if(attach_as.isEmpty())
attach_as = QInputDialog::getText(0,
qApp->applicationName(),
tr("Please specify the database name under which you want to access the attached database")
tr("Please specify the database name under which you want to access the attached database"),
QLineEdit::Normal,
QFileInfo(filename).baseName()
).trimmed();
if(attach_as.isEmpty())
return false;