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
This commit is contained in:
cxl 2009-05-11 08:56:05 +00:00
parent e3591f289d
commit 8b4c8d2924

View file

@ -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();