summaryrefslogtreecommitdiff
path: root/src/urlbar/webshortcutwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/urlbar/webshortcutwidget.cpp')
-rw-r--r--src/urlbar/webshortcutwidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/urlbar/webshortcutwidget.cpp b/src/urlbar/webshortcutwidget.cpp
index 843d528b..c687108a 100644
--- a/src/urlbar/webshortcutwidget.cpp
+++ b/src/urlbar/webshortcutwidget.cpp
@@ -18,6 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
+#include "rekonq_defines.h"
#include "webshortcutwidget.h"
#include <QtCore/QTimer>
@@ -138,11 +139,11 @@ void WebShortcutWidget::cancelClicked()
void WebShortcutWidget::shortcutsChanged(const QString& newShorthands)
{
int savedCursorPosition = m_wsLineEdit->cursorPosition();
- QString normalizedShorthands = QString(newShorthands).replace(" ", ",");
+ QString normalizedShorthands = QString(newShorthands).replace(QL1C(' '), QL1C(','));
m_wsLineEdit->setText(normalizedShorthands);
m_wsLineEdit->setCursorPosition(savedCursorPosition);
- QSet<QString> shorthands = normalizedShorthands.split(",").toSet();
+ QSet<QString> shorthands = normalizedShorthands.split(QL1C(',')).toSet();
QString contenderName = "";
QString contenderWS = "";