From bcd3c79eca66c911cf5eb9c593b63ab60e46d783 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 29 Aug 2020 00:44:27 -0400 Subject: yuzu/main: Amend lifetime issues with InputSubsystem Due to the way Qt performs destruction of parent/child widgets, we need to make the lifetime of the input subsystem shared across the main window and the render window. --- src/yuzu/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/yuzu/main.h') diff --git a/src/yuzu/main.h b/src/yuzu/main.h index 957f20fa8..0ce66a1ca 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h @@ -258,7 +258,7 @@ private: Ui::MainWindow ui; std::unique_ptr discord_rpc; - std::unique_ptr input_subsystem; + std::shared_ptr input_subsystem; GRenderWindow* render_window; GameList* game_list; -- cgit v1.2.3