summaryrefslogtreecommitdiffhomepage
path: root/opentrack/main-window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/main-window.cpp')
-rw-r--r--opentrack/main-window.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp
index bff3d080..9e5711db 100644
--- a/opentrack/main-window.cpp
+++ b/opentrack/main-window.cpp
@@ -65,10 +65,8 @@ main_window::main_window() : State(OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH)
ui.btnStartTracker->setFocus();
- {
- auto dlg = update_query{this};
- dlg.maybe_show_dialog();
- }
+ updater = std::make_unique<update_query>(this);
+ updater->maybe_show_dialog();
}
void main_window::init_shortcuts()