mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
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:
parent
5b96abf7aa
commit
6dd5a3a866
4 changed files with 6 additions and 5 deletions
2
Source/Core/DolphinQt2/Config/CheatWarningWidget.h
Normal file → Executable file
2
Source/Core/DolphinQt2/Config/CheatWarningWidget.h
Normal file → Executable 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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue