1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-08-31 16:12:15 +00:00

Specify context parameter in connect()

This commit is contained in:
Chocobo1 2017-07-19 15:21:15 +08:00
parent 24a69a9fe7
commit e7ee59c12f

View File

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