вернул BitcoinGUI::error 163/head
authorfsb4000 <fsb4000@yandex.ru>
Sat, 14 Feb 2015 04:26:47 +0000 (10:26 +0600)
committerfsb4000 <fsb4000@yandex.ru>
Sat, 14 Feb 2015 04:26:47 +0000 (10:26 +0600)
src/qt/bitcoingui.cpp
src/qt/bitcoingui.h

index c25f833..a191a8d 100644 (file)
@@ -1218,3 +1218,14 @@ void BitcoinGUI::toggleHidden()
 {
     showNormalIfMinimized(true);
 }
+
+void BitcoinGUI::error(const QString &title, const QString &message, bool modal)
+{
+    // Report errors from network/worker thread
+    if(modal)
+    {
+        QMessageBox::critical(this, title, message, QMessageBox::Ok, QMessageBox::Ok);
+    } else {
+        notificator->notify(Notificator::Critical, title, message);
+    }
+}
index de83a58..d27151a 100644 (file)
@@ -138,6 +138,7 @@ public slots:
     void setEncryptionStatus(int status);
 
     /** Notify the user of an error in the network or transaction handling code. */
+    void error(const QString &title, const QString &message, bool modal);
     void message(const QString &title, const QString &message, unsigned int style, const QString &detail=QString());
 
     /** Asks the user whether to pay the transaction fee or to cancel the transaction.