diff --git a/Source/Core/DolphinQt2/NetPlay/GameListDialog.cpp b/Source/Core/DolphinQt2/NetPlay/GameListDialog.cpp index 52ce85b345..a85c55f697 100644 --- a/Source/Core/DolphinQt2/NetPlay/GameListDialog.cpp +++ b/Source/Core/DolphinQt2/NetPlay/GameListDialog.cpp @@ -59,7 +59,7 @@ void GameListDialog::PopulateGameList() m_game_list->sortItems(); } -const QString& GameListDialog::GetSelectedUniqueID() +const QString& GameListDialog::GetSelectedUniqueID() const { return m_game_id; } diff --git a/Source/Core/DolphinQt2/NetPlay/GameListDialog.h b/Source/Core/DolphinQt2/NetPlay/GameListDialog.h index 824fe3ee21..da04bd4996 100644 --- a/Source/Core/DolphinQt2/NetPlay/GameListDialog.h +++ b/Source/Core/DolphinQt2/NetPlay/GameListDialog.h @@ -18,7 +18,7 @@ public: explicit GameListDialog(QWidget* parent); int exec() override; - const QString& GetSelectedUniqueID(); + const QString& GetSelectedUniqueID() const; private: void CreateWidgets();