Removed RunOnObject() usage to prevent deadlock on exiting the NetPlay Session Browser dialog.

This commit is contained in:
Christian Aguilera
2020-08-15 00:28:19 +01:00
parent eee1589aa3
commit ddeb2236ae
2 changed files with 27 additions and 15 deletions

View File

@ -35,6 +35,8 @@ public:
void accept() override;
signals:
void Join();
void UpdateStatusRequested(const QString& status);
void UpdateListRequested(std::vector<NetPlaySession> sessions);
private:
void CreateWidgets();
@ -46,6 +48,9 @@ private:
void OnSelectionChanged();
void OnUpdateStatusRequested(const QString& status);
void OnUpdateListRequested(std::vector<NetPlaySession> sessions);
void SaveSettings() const;
void RestoreSettings();
@ -71,3 +76,5 @@ private:
Common::Flag m_refresh_run;
Common::Event m_refresh_event;
};
Q_DECLARE_METATYPE(std::vector<NetPlaySession>)