diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-02-20 08:56:41 -0800 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-02-20 08:56:41 -0800 |
| commit | f7b8f824de1f5d4671d2ba2ee4b823df00b4e0f6 (patch) | |
| tree | eb37fd644d899999c4a45205834ab9f3e548f017 /src/init.cpp | |
| parent | Merge pull request #858 from laanwj/2012_02_uisendlabelfix (diff) | |
| parent | On windows, show message box with help, as there is no stderr (fixes #702) (diff) | |
| download | discoin-f7b8f824de1f5d4671d2ba2ee4b823df00b4e0f6.tar.xz discoin-f7b8f824de1f5d4671d2ba2ee4b823df00b4e0f6.zip | |
Merge pull request #857 from laanwj/2012_02_fixhelpwindow
On windows, show message box with help, as there is no stderr (fixes #702)
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 2adfed2eb..f09f044f1 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -249,7 +249,12 @@ bool AppInit2(int argc, char* argv[]) // Remove tabs strUsage.erase(std::remove(strUsage.begin(), strUsage.end(), '\t'), strUsage.end()); +#if defined(QT_GUI) && defined(WIN32) + // On windows, show a message box, as there is no stderr + wxMessageBox(strUsage, "Usage"); +#else fprintf(stderr, "%s", strUsage.c_str()); +#endif return false; } |