From 7c44520ffa37faa83731edd85dfe8196ba625d52 Mon Sep 17 00:00:00 2001
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
Date: Fri, 19 Aug 2011 15:45:39 +0200
Subject: Enter accepts the friend request, escape defers the decision

I know they're not called friend requests. But if I'm submitting a change
that's biased towards accepting the request, I'm behaving like facebook. So
it's a friend request and I'm a foobar. Shame on me.

License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php

diff --git a/Swift/QtUI/QtSubscriptionRequestWindow.cpp b/Swift/QtUI/QtSubscriptionRequestWindow.cpp
index 7828103..d22cbd0 100644
--- a/Swift/QtUI/QtSubscriptionRequestWindow.cpp
+++ b/Swift/QtUI/QtSubscriptionRequestWindow.cpp
@@ -28,10 +28,12 @@ QtSubscriptionRequestWindow::QtSubscriptionRequestWindow(boost::shared_ptr<Subsc
 		layout->addWidget(okButton);
 	} else {
 		QPushButton* yesButton = new QPushButton(tr("Yes"), this);
+		yesButton->setDefault(true);
 		connect(yesButton, SIGNAL(clicked()), this, SLOT(handleYes()));
 		QPushButton* noButton = new QPushButton(tr("No"), this);
 		connect(noButton, SIGNAL(clicked()), this, SLOT(handleNo()));
 		QPushButton* deferButton = new QPushButton(tr("Defer"), this);
+		deferButton->setShortcut(QKeySequence(Qt::Key_Escape));
 		connect(deferButton, SIGNAL(clicked()), this, SLOT(handleDefer()));
 
 		QHBoxLayout* buttonLayout = new QHBoxLayout();
-- 
cgit v0.10.2-6-g49f6