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 | b66d4555360b0b8634022b5171f41fcee940bc1e (diff) | |
| parent | 28bfc903b9175c4f640abfdaee201dd2a4a60b79 (diff) | |
| download | monzero-core-853f80e23a10e4fa1a9e94534ccdeb6e24beea79.tar.gz monzero-core-853f80e23a10e4fa1a9e94534ccdeb6e24beea79.tar.xz monzero-core-853f80e23a10e4fa1a9e94534ccdeb6e24beea79.zip | |
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(); |
