From f3ab974bc69a32e410eee3b4cca09fa5f3865215 Mon Sep 17 00:00:00 2001 From: Michael M Date: Sun, 20 Aug 2017 13:36:29 -0700 Subject: [PATCH] GameListModel: fallback to file name if long name is empty --- Source/Core/DolphinQt2/GameList/GameListModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/GameList/GameListModel.cpp b/Source/Core/DolphinQt2/GameList/GameListModel.cpp index 860fbbe9d0..9b12f4f2d5 100644 --- a/Source/Core/DolphinQt2/GameList/GameListModel.cpp +++ b/Source/Core/DolphinQt2/GameList/GameListModel.cpp @@ -73,7 +73,10 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const Core::TitleDatabase::TitleType::Channel : Core::TitleDatabase::TitleType::Other)); if (display_name.isEmpty()) - return game->GetLongName(); + display_name = game->GetLongName(); + + if (display_name.isEmpty()) + display_name = game->GetFileName(); return display_name; }