Fix tab name for read-only databases.

This commit is contained in:
Felix Geyer 2015-07-18 18:29:19 +02:00
parent b1fd99f4c4
commit 6327eaf587

View File

@ -453,7 +453,7 @@ void DatabaseTabWidget::updateTabName(Database* db)
QString tabName;
if (dbStruct.saveToFilename) {
if (dbStruct.saveToFilename || dbStruct.readOnly) {
if (db->metadata()->name().isEmpty()) {
tabName = dbStruct.fileName;
}