From feb48899c3464e4047fe117d6a81c1e0f17cd0e8 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 24 Jan 2020 14:51:07 +1000 Subject: [PATCH] Qt: Don't double-create game list --- src/duckstation-qt/qthostinterface.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index ee3ad17b9..1a7c9863a 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -25,7 +25,7 @@ QtHostInterface::QtHostInterface(QObject* parent) : QObject(parent), HostInterface(), m_qsettings(QString::fromStdString(GetSettingsFileName()), QSettings::IniFormat) { checkSettings(); - createGameList(); + refreshGameList(); doUpdateInputMap(); createThread(); } @@ -154,12 +154,6 @@ void QtHostInterface::checkSettings() m_settings.Load(si); } -void QtHostInterface::createGameList() -{ - m_game_list = std::make_unique(); - refreshGameList(false, false); -} - void QtHostInterface::refreshGameList(bool invalidate_cache /* = false */, bool invalidate_database /* = false */) { std::lock_guard lock(m_qsettings_mutex);