diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-09-22 17:26:40 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-09-22 17:26:40 +0200 |
commit | abc6beaf783fad2dacf9e4ed75208854e0760f5e (patch) | |
tree | 336430e898f57b21e9be46d27767ae24e440e5af /src/lib | |
parent | Updated documentation (diff) | |
download | smolbote-abc6beaf783fad2dacf9e4ed75208854e0760f5e.tar.xz |
Some fixes based on clazy
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/navigation/urllineedit.cpp | 8 |
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); |