From fe24fd560ec2302306857a52a07155c93f5dde69 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Mon, 5 Mar 2012 08:42:38 +0000
Subject: Close adhoc window after cancelling.

Resolves: #955

diff --git a/Swift/QtUI/QtAdHocCommandWindow.cpp b/Swift/QtUI/QtAdHocCommandWindow.cpp
index 221d1f5..f8a3cd6 100644
--- a/Swift/QtUI/QtAdHocCommandWindow.cpp
+++ b/Swift/QtUI/QtAdHocCommandWindow.cpp
@@ -62,6 +62,7 @@ QtAdHocCommandWindow::~QtAdHocCommandWindow() {
 
 void QtAdHocCommandWindow::handleCancelClicked() {
 	command_->cancel();
+	close();
 }
 
 void QtAdHocCommandWindow::handlePrevClicked() {
-- 
cgit v0.10.2-6-g49f6