From 058763a800a42b0cb32321a89023ebc3820477f3 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Fri, 1 Feb 2019 10:29:37 -0800 Subject: [PATCH] Clean warnings --- src/mainwindow.cpp | 2 +- src/mainwindow.ui | 4 ++-- src/sendtab.cpp | 7 ++++++- src/turnstile.cpp | 4 ++-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7710d86..18203bb 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -620,7 +620,7 @@ void MainWindow::postToZBoard() { rpc->executeTransaction(tx, [=] (QString opid) { ui->statusBar->showMessage(tr("Computing Tx: ") % opid); }, - [=] (QString opid, QString txid) { + [=] (QString /*opid*/, QString txid) { ui->statusBar->showMessage(Settings::txidStatusMessage + " " + txid); }, [=] (QString opid, QString errStr) { diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 3ca0153..c45cfd9 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -531,7 +531,7 @@ - + @@ -1029,7 +1029,7 @@ 0 0 968 - 19 + 22 diff --git a/src/sendtab.cpp b/src/sendtab.cpp index 05ce4dc..878e0dd 100644 --- a/src/sendtab.cpp +++ b/src/sendtab.cpp @@ -97,6 +97,11 @@ void MainWindow::setupSendTab() { // Recurring schedule button QObject::connect(ui->btnRecurSchedule, &QPushButton::clicked, this, &MainWindow::editSchedule); + // Hide the recurring section for now + ui->chkRecurring->setVisible(false); + ui->lblRecurDesc->setVisible(false); + ui->btnRecurSchedule->setVisible(false); + // Set the default state for the whole page removeExtraAddresses(); } @@ -655,7 +660,7 @@ void MainWindow::sendButton() { [=] (QString opid) { ui->statusBar->showMessage(tr("Computing Tx: ") % opid); }, - [=] (QString opid, QString txid) { + [=] (QString, QString txid) { ui->statusBar->showMessage(Settings::txidStatusMessage + " " + txid); }, [=] (QString opid, QString errStr) { diff --git a/src/turnstile.cpp b/src/turnstile.cpp index a94118d..e1f1cfd 100644 --- a/src/turnstile.cpp +++ b/src/turnstile.cpp @@ -350,11 +350,11 @@ void Turnstile::executeMigrationStep() { } } -void Turnstile::doSendTx(Tx tx, std::function cb) { +void Turnstile::doSendTx(Tx tx, std::function /*cb*/) { rpc->executeTransaction(tx, [=] (QString opid) { mainwindow->ui->statusBar->showMessage(QObject::tr("Computing Tx: ") % opid); }, - [=] (QString opid, QString txid) { + [=] (QString /*opid*/, QString txid) { mainwindow->ui->statusBar->showMessage(Settings::txidStatusMessage + " " + txid); }, [=] (QString opid, QString errStr) {