aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/library/librarymodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/library/librarymodel.cpp')
-rw-r--r--src/plugins/General/library/librarymodel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/General/library/librarymodel.cpp b/src/plugins/General/library/librarymodel.cpp
index a1c583149..9541bb382 100644
--- a/src/plugins/General/library/librarymodel.cpp
+++ b/src/plugins/General/library/librarymodel.cpp
@@ -194,8 +194,7 @@ QVariant LibraryModel::data(const QModelIndex &index, int role) const
if(!index.isValid() || role != Qt::DisplayRole)
return QVariant();
- QString name = static_cast<LibraryTreeItem *>(index.internalPointer())->name;
- return name.isEmpty() ? tr("Unknown") : name;
+ return static_cast<LibraryTreeItem *>(index.internalPointer())->name;
}
QModelIndex LibraryModel::parent(const QModelIndex &child) const