X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fqt%2Fbitcoin.cpp;h=4fed781ebb5f99d9cad1dc65273e193e870acf37;hp=b68eb821bb9d6b4d74c654eaaa54483d55997ba7;hb=658cf0b1be93e08eee400b0bd1e9d3485313475d;hpb=ef9ab3c2a0c5f2d8862e7315a01f9cfd7bee242d diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index b68eb82..4fed781 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -41,12 +41,19 @@ int MyMessageBox(const std::string& message, const std::string& caption, int sty int ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style, wxWindow* parent, int x, int y) { + bool modal = style & wxMODAL; + + if (modal) + while (!guiref) + sleep(1); + // Message from network thread if(guiref) { QMetaObject::invokeMethod(guiref, "error", Qt::QueuedConnection, Q_ARG(QString, QString::fromStdString(caption)), - Q_ARG(QString, QString::fromStdString(message))); + Q_ARG(QString, QString::fromStdString(message)), + Q_ARG(bool, modal)); } else {