From 68dcc8a0d143f5195740461f6a62f43ffe553ee5 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Wed, 2 Oct 2002 22:36:18 +0000 Subject: [PATCH] Bug fix svn path=/trunk/boinc/; revision=455 --- client/win/wingui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/win/wingui.cpp b/client/win/wingui.cpp index ef31a04593..cb444eace7 100755 --- a/client/win/wingui.cpp +++ b/client/win/wingui.cpp @@ -1,5 +1,6 @@ #include +#include "account.h" #include "log_flags.h" #include "client_state.h" #include "resource.h" @@ -61,7 +62,7 @@ int initialize_prefs() { CLoginDialog dlg(IDD_LOGIN); int retval = dlg.DoModal(); if (retval != IDOK) return -1; - write_initial_prefs((char*)(LPCTSTR) dlg.url, (char*)(LPCTSTR) dlg.auth); + write_account_prefs((char*)(LPCTSTR) dlg.url, (char*)(LPCTSTR) dlg.auth); return 0; } @@ -312,6 +313,7 @@ int CMainWindow::OnCreate (LPCREATESTRUCT lpcs) read_log_flags(); int retval = gstate.init(); if (retval) exit(retval); + initialize_prefs(); SetTimer(ID_TIMER, 1000, TimerProc); return 0;