aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-03-12 16:21:52 +0200
committerRiccardo Spagni <ric@spagni.net>2016-03-12 16:21:53 +0200
commit853f80e23a10e4fa1a9e94534ccdeb6e24beea79 (patch)
tree0d1c29bef0d4625d172f0661f5cdc9951b27b427
parentMerge pull request #716 (diff)
parentsimplewallet: special ^C handling for windows (diff)
downloadmonero-853f80e23a10e4fa1a9e94534ccdeb6e24beea79.tar.xz
Merge pull request #717
28bfc90 simplewallet: special ^C handling for windows (moneromooo-monero)
-rw-r--r--src/simplewallet/simplewallet.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 3e5cdfcb6..04201c37e 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -2746,7 +2746,11 @@ int main(int argc, char* argv[])
else
{
tools::signal_handler::install([&w](int type) {
+#ifdef WIN32
+ if (type == CTRL_C_EVENT)
+#else
if (type == SIGINT)
+#endif
{
// if we're pressing ^C when refreshing, just stop refreshing
w.interrupt();