#74, #42 - Show a warning if there are no peers/internet is off

This commit is contained in:
adityapk
2018-12-13 15:39:38 -08:00
parent 8e91eef4f4
commit 077b1896a8
5 changed files with 44 additions and 5 deletions

View File

@@ -581,6 +581,9 @@ bool MainWindow::confirmTx(Tx tx) {
// Syncing warning
confirm.syncingWarning->setVisible(Settings::getInstance()->isSyncing());
// No peers warning
confirm.nopeersWarning->setVisible(Settings::getInstance()->getPeers() == 0);
// And FromAddress in the confirm dialog
confirm.sendFrom->setText(fnSplitAddressForWrap(tx.fromAddr));
QString tooltip = tr("Current balance : ") +