From 5eede9d4d9932969cd75a47dc0d6fd4c090f0342 Mon Sep 17 00:00:00 2001 From: s_nakamoto Date: Thu, 25 Feb 2010 21:55:27 +0000 Subject: GUI-less build target bitcoind that links to wxBase and shouldn't need GTK, split init and shutdown from ui.cpp into init.cpp, support wxUSE_GUI=0 -- version 0.2.7 --- util.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util.cpp') diff --git a/util.cpp b/util.cpp index 6ea735d1e2..d90cdc48f9 100644 --- a/util.cpp +++ b/util.cpp @@ -459,6 +459,7 @@ const char* wxGetTranslation(const char* pszEnglish) mapCache[pszEnglish] = pszCached; return pszCached; } + return NULL; } @@ -502,8 +503,8 @@ void PrintException(std::exception* pex, const char* pszThread) FormatException(pszMessage, pex, pszThread); printf("\n\n************************\n%s\n", pszMessage); fprintf(stderr, "\n\n************************\n%s\n", pszMessage); - if (wxTheApp && !fDaemon) - wxMessageBox(pszMessage, "Error", wxOK | wxICON_ERROR); + if (wxTheApp && !fDaemon && fGUI) + MyMessageBox(pszMessage, "Error", wxOK | wxICON_ERROR); throw; //DebugBreak(); } -- cgit v1.2.3