diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-03-12 16:21:52 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-03-12 16:21:53 +0200 |
commit | 853f80e23a10e4fa1a9e94534ccdeb6e24beea79 (patch) | |
tree | 0d1c29bef0d4625d172f0661f5cdc9951b27b427 | |
parent | Merge pull request #716 (diff) | |
parent | simplewallet: special ^C handling for windows (diff) | |
download | monero-853f80e23a10e4fa1a9e94534ccdeb6e24beea79.tar.xz |
Merge pull request #717
28bfc90 simplewallet: special ^C handling for windows (moneromooo-monero)
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 4 |
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(); |