From f9d603827986591a366567635d5c62d7222521e8 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 18 Mar 2021 21:51:05 +0000 Subject: library: using file name as title if title is empty git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9765 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/library/librarymodel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/General/library/librarymodel.cpp') 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(index.internalPointer())->name; - return name.isEmpty() ? tr("Unknown") : name; + return static_cast(index.internalPointer())->name; } QModelIndex LibraryModel::parent(const QModelIndex &child) const -- cgit v1.2.3-13-gbd6f