aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-09-22 17:26:40 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2017-09-22 17:26:40 +0200
commitabc6beaf783fad2dacf9e4ed75208854e0760f5e (patch)
tree336430e898f57b21e9be46d27767ae24e440e5af /src/lib
parentUpdated documentation (diff)
downloadsmolbote-abc6beaf783fad2dacf9e4ed75208854e0760f5e.tar.xz
Some fixes based on clazy
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/navigation/urllineedit.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/navigation/urllineedit.cpp b/src/lib/navigation/urllineedit.cpp
index 5ba0701..5e47223 100644
--- a/src/lib/navigation/urllineedit.cpp
+++ b/src/lib/navigation/urllineedit.cpp
@@ -56,12 +56,12 @@ UrlLineEdit::UrlLineEdit(QWidget *parent) :
listWidget->addItem("start.duckduckgo.com");
listWidget->addItem("neueland.iserlohn-fortress.net");
- connect(listWidget, &QListWidget::itemSelectionChanged, [this]() {
+ connect(listWidget, &QListWidget::itemSelectionChanged, this, [&]() {
setText(listWidget->currentItem()->text());
});
- connect(listWidget, &QListWidget::itemActivated, [this](QListWidgetItem *item) {
- setText(listWidget->currentItem()->text());;
- this->m_menu->hide();
+ connect(listWidget, &QListWidget::itemActivated, this, [&](QListWidgetItem *item) {
+ setText(item->text());;
+ m_menu->hide();
});
QWidgetAction *listAction = new QWidgetAction(m_menu);