Skip to content

Commit 6ef80f4

Browse files
committed
#3403 refactor: fix unused-variable errors
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 6dac6e5 commit 6ef80f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mainwindow.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5551,7 +5551,7 @@ void MainWindow::showAppMetricsNotificationIfNeeded() {
55515551
"and to find and fix bugs. You can disable that "
55525552
"behaviour in the settings."),
55535553
QMessageBox::NoButton, this);
5554-
QPushButton *okButton = msgBox.addButton(tr("&Ok"), QMessageBox::AcceptRole);
5554+
msgBox.addButton(tr("&Ok"), QMessageBox::AcceptRole);
55555555
QPushButton *settingsButton =
55565556
msgBox.addButton(tr("Open &settings"), QMessageBox::ActionRole);
55575557
msgBox.setDefaultButton(settingsButton);
@@ -6977,7 +6977,7 @@ void MainWindow::on_actionDecrypt_note_triggered() {
69776977
"synced to your server and sensitive text may be exposed!"
69786978
"<br />Do you want to decrypt your note?"),
69796979
QMessageBox::NoButton, this);
6980-
QPushButton *decryptButton = msgBox.addButton(tr("&Decrypt"), QMessageBox::AcceptRole);
6980+
msgBox.addButton(tr("&Decrypt"), QMessageBox::AcceptRole);
69816981
QPushButton *cancelButton = msgBox.addButton(tr("&Cancel"), QMessageBox::RejectRole);
69826982
msgBox.setDefaultButton(cancelButton);
69836983
msgBox.exec();
@@ -11368,7 +11368,7 @@ void MainWindow::on_actionShow_note_git_versions_triggered() {
1136811368
QMessageBox::NoButton, this);
1136911369
QPushButton *settingsButton =
1137011370
msgBox.addButton(tr("Open &settings"), QMessageBox::AcceptRole);
11371-
QPushButton *cancelButton = msgBox.addButton(tr("&Cancel"), QMessageBox::RejectRole);
11371+
msgBox.addButton(tr("&Cancel"), QMessageBox::RejectRole);
1137211372
msgBox.setDefaultButton(settingsButton);
1137311373
msgBox.exec();
1137411374

0 commit comments

Comments
 (0)