summaryrefslogtreecommitdiff
path: root/src/urlbar/webshortcutwidget.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-04-23 00:34:19 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-04-23 00:34:19 +0200
commitae1c295495659fb01874ae6af4d0b89a0a2424dc (patch)
tree8143905fece76f036e893d4684443025a67ea4d4 /src/urlbar/webshortcutwidget.cpp
parentAdd fixed favorite icon in the toolbar to let add favorites easier (diff)
downloadrekonq-ae1c295495659fb01874ae6af4d0b89a0a2424dc.tar.xz
Fix opensearch add shortcut handling
(at least on every site tested, but opensearch.org itself. Broken?) BUG: 296707
Diffstat (limited to 'src/urlbar/webshortcutwidget.cpp')
-rw-r--r--src/urlbar/webshortcutwidget.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/urlbar/webshortcutwidget.cpp b/src/urlbar/webshortcutwidget.cpp
index 409d0b32..c6dc3b79 100644
--- a/src/urlbar/webshortcutwidget.cpp
+++ b/src/urlbar/webshortcutwidget.cpp
@@ -4,6 +4,7 @@
*
* Copyright (C) 2009 by Fredy Yanardi <fyanardi@gmail.com>
* Copyright (C) 2010-2011 by Lionel Chauvin <megabigbug@yahoo.fr>
+* Copyright (C) 2012 by Andrea Diamantini <adjam7 at gmail dot com>
*
*
* This program is free software; you can redistribute it and/or
@@ -27,7 +28,7 @@
// Self Includes
#include "webshortcutwidget.h"
-#include "rekonq_defines.h"
+#include "webshortcutwidget.moc"
// KDE Includes
#include <KGlobalSettings>
@@ -113,6 +114,8 @@ void WebShortcutWidget::show(const KUrl &url, const QString &openSearchName, con
void WebShortcutWidget::accept()
{
emit webShortcutSet(m_url, m_nameLineEdit->text(), m_wsLineEdit->text());
+
+ // close widget (and destroy it)
close();
}
@@ -158,7 +161,3 @@ void WebShortcutWidget::shortcutsChanged(const QString& newShorthands)
}
}
}
-
-#include "webshortcutwidget.moc"
-
-