diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp old mode 100644 new mode 100755 index 3611302..e652581 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1448,6 +1448,14 @@ void MainWindow::setupPeersTab() { rpc->refreshPeers(); }); }); + + menu.addAction(tr("Unban all peers"), [=] () { + rpc->clearBanned([=] (QJsonValue response){ + qDebug() << "clearBanned " << response; + ui->statusBar->showMessage(tr("All peers unbanned"), 3 * 1000); + rpc->refreshPeers(); + }); + }); } menu.exec(ui->bannedPeersTable->viewport()->mapToGlobal(pos));