Skip to content

Commit

Permalink
#43 Clear tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapk00 committed Nov 10, 2018
1 parent 5e4b9bc commit b98aaac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b98aaac

Please sign in to comment.