aboutsummaryrefslogtreecommitdiff
path: root/util.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-25 21:55:27 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-25 21:55:27 +0000
commitc2430126d75318508836a24f90d3524320190465 (patch)
treea583b1254b26f49572fb48c52523977b75beabd2 /util.cpp
parentcb420a1dfc23d3c11c5281ed8f7ae003c2f61594 (diff)
downloadbitcoin-c2430126d75318508836a24f90d3524320190465.tar.xz
GUI-less build target bitcoind that links to wxBase and shouldn't need GTK,v0.2.7
split init and shutdown from ui.cpp into init.cpp, support wxUSE_GUI=0 -- version 0.2.7 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@71 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp5
1 files changed, 3 insertions, 2 deletions
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();
}