Remove unnecessary capture of this

This commit is contained in:
Nicolas Werner 2020-11-26 23:55:47 +01:00
parent 4d29116922
commit 202e3debe6
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}