Skip to content

Commit

Permalink
fix qt5 compiles for win.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvforvendetta committed Nov 8, 2017
1 parent 9e35ea7 commit 8addc5d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
#endif

// Need a global reference for the notifications to find the GUI
static BitcoinGUI *guiref;
static QSplashScreen *splashref;
static BitcoinGUI *guiref = NULL;
static QSplashScreen *splashref = NULL;

static void ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style)
{
Expand Down Expand Up @@ -88,7 +88,11 @@ static void InitMessage(const std::string &message)
{
if(splashref)
{
splashref->showMessage(QString::fromStdString(message), Qt::AlignVCenter|Qt::AlignHCenter, QColor(255,255,200));
//splashref->showMessage(QString::fromStdString(message), Qt::AlignVCenter|Qt::AlignHCenter, QColor(255,255,200));
QMetaObject::invokeMethod(splashref, "showMessage", GUIUtil::blockingGUIThreadConnection(),
Q_ARG(QString, QString::fromStdString(message)),
Q_ARG(int, Qt::AlignVCenter|Qt::AlignHCenter),
Q_ARG(const QColor &, QColor(255, 255, 200)));
QApplication::instance()->processEvents();
}
}
Expand Down

1 comment on commit 8addc5d

@prasadarbuj
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Please sign in to comment.