diff options
Diffstat (limited to 'opentrack/main-window.cpp')
-rw-r--r-- | opentrack/main-window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index 0753fa69..89100cbd 100644 --- a/opentrack/main-window.cpp +++ b/opentrack/main-window.cpp @@ -559,8 +559,8 @@ static bool mk_window_common(std::unique_ptr<t>& d, F&& fun) template<typename t, typename... Args> static bool mk_window(std::unique_ptr<t>& place, Args&&... params) { - return mk_window_common(place, [&] { - return std::make_unique<t>(params...); + return mk_window_common(place, show, [&] { + return std::make_unique<t>(std::forward<Args>(params)...); }); } |