From 8b952b387041341f556edcf0bb34576a2fc88568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 6 Nov 2016 21:58:54 +0100 Subject: NOISSUE Refactor and sanitize MultiMC startup/shutdown * Always create main window. * Properly handle netowrk manager - it was created twice, leading to potential crashes. --- application/WonkoGui.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'application/WonkoGui.h') diff --git a/application/WonkoGui.h b/application/WonkoGui.h index 2b87b819..ad0bee89 100644 --- a/application/WonkoGui.h +++ b/application/WonkoGui.h @@ -1,11 +1,12 @@ #pragma once #include +#include "QObjectPtr.h" class QWidget; class QString; -using WonkoIndexPtr = std::shared_ptr; +using WonkoIndexPtr = shared_qobject_ptr; using WonkoVersionListPtr = std::shared_ptr; using WonkoVersionPtr = std::shared_ptr; -- cgit v1.2.3