#43 Clear tooltips
This commit is contained in:
@@ -332,7 +332,10 @@ void RPC::fillTxJsonParams(json& params, Tx tx) {
|
||||
void RPC::noConnection() {
|
||||
QIcon i = QApplication::style()->standardIcon(QStyle::SP_MessageBoxCritical);
|
||||
main->statusIcon->setPixmap(i.pixmap(16, 16));
|
||||
main->statusIcon->setToolTip("");
|
||||
main->statusLabel->setText("No Connection");
|
||||
main->statusLabel->setToolTip("");
|
||||
main->ui->statusBar->showMessage("No Connection", 1000);
|
||||
|
||||
// Clear balances table.
|
||||
QMap<QString, double> emptyBalances;
|
||||
@@ -574,7 +577,7 @@ void RPC::getInfoThenRefresh(bool force) {
|
||||
main->statusIcon->setToolTip(tooltip);
|
||||
});
|
||||
|
||||
}, [=](QNetworkReply* reply, const json& replyJson) {
|
||||
}, [=](QNetworkReply* reply, const json&) {
|
||||
// zcashd has probably disappeared.
|
||||
this->noConnection();
|
||||
if (prevCallSucceeded) { // show error only first time
|
||||
|
||||
Reference in New Issue
Block a user