Remove unnecessary capture of this

This commit is contained in:
Nicolas Werner 2020-11-26 23:55:47 +01:00
parent 4d29116922
commit 202e3debe6

View file

@ -566,9 +566,8 @@ ChatPage::showQuickSwitcher()
auto dialog = new QuickSwitcher(this); auto dialog = new QuickSwitcher(this);
connect(dialog, &QuickSwitcher::roomSelected, room_list_, &RoomList::highlightSelectedRoom); connect(dialog, &QuickSwitcher::roomSelected, room_list_, &RoomList::highlightSelectedRoom);
connect(dialog, &QuickSwitcher::closing, this, [this]() { connect(
MainWindow::instance()->hideOverlay(); dialog, &QuickSwitcher::closing, this, []() { MainWindow::instance()->hideOverlay(); });
});
MainWindow::instance()->showTransparentOverlayModal(dialog); MainWindow::instance()->showTransparentOverlayModal(dialog);
} }