From 37da5e11410c025152793fce235fe5b614b42660 Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 3 Aug 2010 14:51:24 +0000 Subject: [PATCH] init sockets in main function, otherwise the installer window doesn't work if updates were not checked first git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1469 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/update_checker.cpp | 1 - src/main.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/update_checker.cpp b/src/gui/update_checker.cpp index d94001f0..8298db40 100644 --- a/src/gui/update_checker.cpp +++ b/src/gui/update_checker.cpp @@ -142,7 +142,6 @@ void check_updates() { } void check_updates_now(bool async) { - wxSocketBase::Initialize(); if (async) { CheckUpdateThread* thread = new CheckUpdateThread; thread->Create(); diff --git a/src/main.cpp b/src/main.cpp index f28cd894..e3494d35 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,6 +26,7 @@ #include #include #include +#include // ----------------------------------------------------------------------------- : Main function/class @@ -82,6 +83,7 @@ int MSE::OnRun() { #endif wxInitAllImageHandlers(); wxFileSystem::AddHandler(new wxInternetFSHandler); // needed for update checker + wxSocketBase::Initialize(); init_script_variables(); init_file_formats(); cli.init();