From e7ee59c12f9b74b69752ba74cc764c5bd54a24f3 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 19 Jul 2017 15:21:15 +0800 Subject: [PATCH] Specify `context` parameter in connect() --- src/gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 0fc0a314d..96d7ed363 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -311,7 +311,7 @@ MainWindow::MainWindow(QWidget *parent) connect(m_ui->actionDecreasePriority, &QAction::triggered, m_transferListWidget, &TransferListWidget::decreasePrioSelectedTorrents); connect(m_ui->actionBottomPriority, &QAction::triggered, m_transferListWidget, &TransferListWidget::bottomPrioSelectedTorrents); #ifndef Q_OS_MAC - connect(m_ui->actionToggleVisibility, &QAction::triggered, [this](){ toggleVisibility(); }); + connect(m_ui->actionToggleVisibility, &QAction::triggered, this, [this]() { toggleVisibility(); }); #endif connect(m_ui->actionMinimize, &QAction::triggered, this, &MainWindow::minimizeWindow); connect(m_ui->actionUseAlternativeSpeedLimits, &QAction::triggered, this, &MainWindow::toggleAlternativeSpeeds);