aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-02-17 17:53:41 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2012-02-17 17:55:46 +0100
commitbc5e6b9f21f1dd4703d286018b43fd0ea0f32186 (patch)
treed412ddd4469eb5bccbc64c6e7ba011c3b4b18a0d /src/qt
parent39231e91052bff032525d99dbe890f742b6180fe (diff)
On windows, show message box with help, as there is no stderr (fixes #702)
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/bitcoin.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 8c4b0e6c10..788009276e 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -27,18 +27,10 @@ QSplashScreen *splashref;
int MyMessageBox(const std::string& message, const std::string& caption, int style, wxWindow* parent, int x, int y)
{
- // Message from main thread
- if(guiref)
- {
- guiref->error(QString::fromStdString(caption),
- QString::fromStdString(message));
- }
- else
- {
- QMessageBox::critical(0, QString::fromStdString(caption),
- QString::fromStdString(message),
- QMessageBox::Ok, QMessageBox::Ok);
- }
+ // Message from AppInit2(), always in main thread before main window is constructed
+ QMessageBox::critical(0, QString::fromStdString(caption),
+ QString::fromStdString(message),
+ QMessageBox::Ok, QMessageBox::Ok);
return 4;
}