From 8b4c8d292415c9bd034403451fcbe472d27010ec Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 11 May 2009 08:56:05 +0000 Subject: [PATCH] UserLog in theide now active only if there is ConfigFile(developide) git-svn-id: svn://ultimatepp.org/upp/trunk@1158 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/idewin.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/uppsrc/ide/idewin.cpp b/uppsrc/ide/idewin.cpp index acd011b6e..a1e316d16 100644 --- a/uppsrc/ide/idewin.cpp +++ b/uppsrc/ide/idewin.cpp @@ -674,10 +674,6 @@ GUI_APP_MAIN void AppMain___() #endif { -#ifdef PLATFORM_WIN32 - InstallCrashDump(); -#endif - SetLanguage(LNG_ENGLISH); SetDefaultCharset(CHARSET_UTF8); @@ -955,7 +951,12 @@ void AppMain___() ide.UpdateFormat(); RestoreKeys(LoadFile(ConfigFile("ide.key"))); ide.editor.LoadHlStyles(LoadFile(ConfigFile("ide.colors"))); - ActivateUsrLog(); + if(FileExists(ConfigFile("developide"))) { + #ifdef PLATFORM_WIN32 + InstallCrashDump(); + #endif + ActivateUsrLog(); + } if(clset || ide.OpenMainPackage()) { StoreToFile(ide); SyncRefs();