From 3864a7fdc6ddda43a21d02cac94a919fb0bbc99c Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Mon, 20 Jul 2015 00:13:18 +0300 Subject: [PATCH] Fix compiler warning for unused variable. --- src/gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 0576feaa0..a8a226de8 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -887,7 +887,7 @@ void MainWindow::closeEvent(QCloseEvent *e) tr("Some files are currently transferring.\nAre you sure you want to quit qBittorrent?"), QMessageBox::NoButton, this); QPushButton *noBtn = confirmBox.addButton(tr("&No"), QMessageBox::NoRole); - QPushButton *yesBtn = confirmBox.addButton(tr("&Yes"), QMessageBox::YesRole); + confirmBox.addButton(tr("&Yes"), QMessageBox::YesRole); QPushButton *alwaysBtn = confirmBox.addButton(tr("&Always Yes"), QMessageBox::YesRole); confirmBox.setDefaultButton(noBtn); confirmBox.exec();