diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-03-12 14:05:25 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-03-12 14:05:25 +0000 |
| commit | 28bfc903b9175c4f640abfdaee201dd2a4a60b79 (patch) | |
| tree | 937f9b4deace0281c750abf6fce99d88a832b517 /src | |
| parent | dfd0e9c97d80c5cd7115d6cbb49cce08168071b6 (diff) | |
| download | monzero-core-28bfc903b9175c4f640abfdaee201dd2a4a60b79.tar.gz monzero-core-28bfc903b9175c4f640abfdaee201dd2a4a60b79.tar.xz monzero-core-28bfc903b9175c4f640abfdaee201dd2a4a60b79.zip | |
simplewallet: special ^C handling for windows
Because obviously it doesn't work as other POSIX platforms.
Reported and tested by luigi1111.
Diffstat (limited to 'src')
| -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(); |
