Allow empty names for attached databases

An empty database name is not the same as pressing the cancel button
when attaching a database.

See issue #1132.
This commit is contained in:
Martin Kleusberg
2017-10-05 23:23:36 +02:00
parent 1cd93ed045
commit b24894f4c3
+1 -1
View File
@@ -168,7 +168,7 @@ bool DBBrowserDB::attach(const QString& filename, QString attach_as)
QLineEdit::Normal,
QFileInfo(filename).baseName()
).trimmed();
if(attach_as.isEmpty())
if(attach_as.isNull())
return false;
#ifdef ENABLE_SQLCIPHER