diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-03-18 21:51:05 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-03-18 21:51:05 +0000 |
| commit | f9d603827986591a366567635d5c62d7222521e8 (patch) | |
| tree | 75a0afc372f411c3d6d8f46bb6d739804e3a13fd /src/plugins/General/library/librarymodel.cpp | |
| parent | fed7feb74c469e0b0eb7c86c74ce76a19e705747 (diff) | |
| download | qmmp-f9d603827986591a366567635d5c62d7222521e8.tar.gz qmmp-f9d603827986591a366567635d5c62d7222521e8.tar.bz2 qmmp-f9d603827986591a366567635d5c62d7222521e8.zip | |
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
Diffstat (limited to 'src/plugins/General/library/librarymodel.cpp')
| -rw-r--r-- | src/plugins/General/library/librarymodel.cpp | 3 |
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 |
