aboutsummaryrefslogtreecommitdiff
path: root/src/noui.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-06-24 16:35:21 +0200
committerPieter Wuille <[email protected]>2016-06-24 16:45:12 +0200
commit1acf1db76fc3e07deb8f0f837934ea90383fedb5 (patch)
treed5988afeaba365f130400cea81e1f21027bc5622 /src/noui.cpp
parentMerge #8204: Update petertodd's testnet seed (diff)
downloaddiscoin-1acf1db76fc3e07deb8f0f837934ea90383fedb5.tar.xz
discoin-1acf1db76fc3e07deb8f0f837934ea90383fedb5.zip
Do not ask a UI question from bitcoind
Diffstat (limited to 'src/noui.cpp')
-rw-r--r--src/noui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/noui.cpp b/src/noui.cpp
index 3a7736191..0d9207c11 100644
--- a/src/noui.cpp
+++ b/src/noui.cpp
@@ -39,6 +39,11 @@ static bool noui_ThreadSafeMessageBox(const std::string& message, const std::str
return false;
}
+static bool noui_ThreadSafeQuestion(const std::string& /* ignored interactive message */, const std::string& message, const std::string& caption, unsigned int style)
+{
+ return noui_ThreadSafeMessageBox(message, caption, style);
+}
+
static void noui_InitMessage(const std::string& message)
{
LogPrintf("init message: %s\n", message);
@@ -48,5 +53,6 @@ void noui_connect()
{
// Connect bitcoind signal handlers
uiInterface.ThreadSafeMessageBox.connect(noui_ThreadSafeMessageBox);
+ uiInterface.ThreadSafeQuestion.connect(noui_ThreadSafeQuestion);
uiInterface.InitMessage.connect(noui_InitMessage);
}