Qt/CheatWarningWidget: properly supply a parent for the widget

Because it wasn't parented properly, it would show briefly the widget in its own window when creating an ARCodeWidget or a GeckoCodeWidget which would occur when accessing the game properties page or when the state changes to pause/running.
This commit is contained in:
aldelaro5 committed 2018-05-18 01:31:43 -04:00
1 parent 5b96abf7aa
commit 6dd5a3a866
4 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ class CheatWarningWidget : public QWidget
{
Q_OBJECT
public:
explicit CheatWarningWidget(const std::string& game_id, bool restart_required);
explicit CheatWarningWidget(const std::string& game_id, bool restart_required, QWidget* parent);
signals:
void OpenCheatEnableSettings();