From 68eea8d30bbf114a35034b69f213d5abd61cc22a Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 8 Feb 2015 12:13:16 +0000 Subject: [PATCH] ide: Synchronize translation files now show console in case of error git-svn-id: svn://ultimatepp.org/upp/trunk@8152 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/ide.h | 2 ++ uppsrc/ide/t.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/uppsrc/ide/ide.h b/uppsrc/ide/ide.h index f997e7083..8f6f52729 100644 --- a/uppsrc/ide/ide.h +++ b/uppsrc/ide/ide.h @@ -1336,4 +1336,6 @@ public: // void CodeBrowser(); }; +inline void ShowConsole() { if(TheIde()) ((Ide *)TheIde())->ShowConsole(); } + #endif diff --git a/uppsrc/ide/t.cpp b/uppsrc/ide/t.cpp index 925fa5adf..d4df20833 100644 --- a/uppsrc/ide/t.cpp +++ b/uppsrc/ide/t.cpp @@ -70,6 +70,7 @@ void LngParseCFile(const String& fn, VectorMap& lng) } catch(CParser::Error e) { PutConsole(e); + ShowConsole(); } } @@ -130,6 +131,7 @@ bool LngParseTFile(const String& fn, VectorMap& lng) } catch(CParser::Error e) { PutConsole(e); + ShowConsole(); return false; } return true;