summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-11-26 23:55:47 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-11-26 23:55:47 +0100
commit202e3debe6113f50664c720f6e4c2c235e88a3f0 (patch)
tree66178ada57fd309943bb4b007e458a3df6d65ec8
parentMerge pull request #344 from Kirillpt/fix/togglebutton_using (diff)
downloadnheko-202e3debe6113f50664c720f6e4c2c235e88a3f0.tar.xz
Remove unnecessary capture of this
-rw-r--r--src/ChatPage.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp

index 6dfa62ef..cb5f242f 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp
@@ -566,9 +566,8 @@ ChatPage::showQuickSwitcher() auto dialog = new QuickSwitcher(this); connect(dialog, &QuickSwitcher::roomSelected, room_list_, &RoomList::highlightSelectedRoom); - connect(dialog, &QuickSwitcher::closing, this, [this]() { - MainWindow::instance()->hideOverlay(); - }); + connect( + dialog, &QuickSwitcher::closing, this, []() { MainWindow::instance()->hideOverlay(); }); MainWindow::instance()->showTransparentOverlayModal(dialog); }