diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-04-23 00:34:19 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-04-27 01:19:17 +0200 |
commit | bbf33903b15e003c249d578fe2aa4e6e0050b0fd (patch) | |
tree | e00b58059f4d0d0a4c331b795f47ae80a028508f /src/urlbar/webshortcutwidget.cpp | |
parent | Revert "Clean up headers && fix compilation with (the upcoming) qt 4.8.2" (diff) | |
download | rekonq-bbf33903b15e003c249d578fe2aa4e6e0050b0fd.tar.xz |
Fix opensearch add shortcut handling
(at least on every site tested, but opensearch.org itself. Broken?)
CCBUG: 296707
Backported from master with the needed compile fixes
Diffstat (limited to 'src/urlbar/webshortcutwidget.cpp')
-rw-r--r-- | src/urlbar/webshortcutwidget.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/urlbar/webshortcutwidget.cpp b/src/urlbar/webshortcutwidget.cpp index d44f6f1a..6ae7a648 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> @@ -112,6 +113,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(); } @@ -157,7 +160,3 @@ void WebShortcutWidget::shortcutsChanged(const QString& newShorthands) } } } - -#include "webshortcutwidget.moc" - - |