summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt2/GameList/GameFile.cpp1
-rw-r--r--Source/Core/DolphinQt2/GameList/GameListModel.cpp5
2 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt2/GameList/GameFile.cpp b/Source/Core/DolphinQt2/GameList/GameFile.cpp
index 394b8b81a7..9797dcb31a 100644
--- a/Source/Core/DolphinQt2/GameList/GameFile.cpp
+++ b/Source/Core/DolphinQt2/GameList/GameFile.cpp
@@ -192,7 +192,6 @@ bool GameFile::TryLoadElfDol()
return false;
m_revision = 0;
- m_long_names[DiscIO::Language::LANGUAGE_ENGLISH] = m_file_name;
m_platform = DiscIO::Platform::ELF_DOL;
m_region = DiscIO::Region::UNKNOWN_REGION;
m_country = DiscIO::Country::COUNTRY_UNKNOWN;
diff --git a/Source/Core/DolphinQt2/GameList/GameListModel.cpp b/Source/Core/DolphinQt2/GameList/GameListModel.cpp
index 0cf62c92e0..f23ab586db 100644
--- a/Source/Core/DolphinQt2/GameList/GameListModel.cpp
+++ b/Source/Core/DolphinQt2/GameList/GameListModel.cpp
@@ -76,7 +76,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;
}