diff --git a/include/Nazara/Platform/AppWindowingComponent.hpp b/include/Nazara/Platform/AppWindowingComponent.hpp index 3fae80df3..caf05fc29 100644 --- a/include/Nazara/Platform/AppWindowingComponent.hpp +++ b/include/Nazara/Platform/AppWindowingComponent.hpp @@ -17,7 +17,7 @@ namespace Nz class NAZARA_PLATFORM_API AppWindowingComponent : public ApplicationComponent { public: - using ApplicationComponent::ApplicationComponent; + inline AppWindowingComponent(ApplicationBase& app); AppWindowingComponent(const AppWindowingComponent&) = delete; AppWindowingComponent(AppWindowingComponent&&) = delete; ~AppWindowingComponent() = default; diff --git a/include/Nazara/Platform/AppWindowingComponent.inl b/include/Nazara/Platform/AppWindowingComponent.inl index 2735a1d73..43b3ab522 100644 --- a/include/Nazara/Platform/AppWindowingComponent.inl +++ b/include/Nazara/Platform/AppWindowingComponent.inl @@ -13,6 +13,12 @@ namespace Nz return *m_windows.emplace_back(std::make_unique(std::forward(args)...)); } + inline AppWindowingComponent::AppWindowingComponent(ApplicationBase& app) : + ApplicationComponent(app), + m_quitOnLastWindowClosed(true) + { + } + inline void AppWindowingComponent::DisableQuitOnLastWindowClosed() { return EnableQuitOnLastWindowClosed(false);