From 22b3d8d594734bb4afec1ab6822ed06d6a5870df Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 21 Jun 2010 16:10:09 +0000 Subject: [PATCH] Fix exit confirmation dialog centering --- src/GUI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index c31582ced..8a14e028d 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -556,7 +556,8 @@ void GUI::closeEvent(QCloseEvent *e) { if(!isVisible()) show(); QMessageBox confirmBox(QMessageBox::Question, tr("Are you sure you want to quit?")+QString::fromUtf8(" -- ")+tr("qBittorrent"), - tr("Some files are currently transferring.\nAre you sure you want to quit qBittorrent?")); + 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); QPushButton *alwaysBtn = confirmBox.addButton(tr("Always"), QMessageBox::YesRole);