mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Fix MainWindow coding style (Issue #2192)
This commit is contained in:
committed by
sledgehammer999
parent
f6b4b5f6f0
commit
99ca42bf48
@@ -311,7 +311,7 @@ void TransferListWidget::pauseVisibleTorrents()
|
||||
|
||||
void TransferListWidget::deleteSelectedTorrents()
|
||||
{
|
||||
if (main_window->getCurrentTabWidget() != this) return;
|
||||
if (main_window->currentTabWidget() != this) return;
|
||||
|
||||
const QList<BitTorrent::TorrentHandle *> torrents = getSelectedTorrents();
|
||||
if (torrents.empty()) return;
|
||||
@@ -343,26 +343,26 @@ void TransferListWidget::deleteVisibleTorrents()
|
||||
void TransferListWidget::increasePrioSelectedTorrents()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
if (main_window->getCurrentTabWidget() == this)
|
||||
if (main_window->currentTabWidget() == this)
|
||||
BitTorrent::Session::instance()->increaseTorrentsPriority(extractHashes(getSelectedTorrents()));
|
||||
}
|
||||
|
||||
void TransferListWidget::decreasePrioSelectedTorrents()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
if (main_window->getCurrentTabWidget() == this)
|
||||
if (main_window->currentTabWidget() == this)
|
||||
BitTorrent::Session::instance()->decreaseTorrentsPriority(extractHashes(getSelectedTorrents()));
|
||||
}
|
||||
|
||||
void TransferListWidget::topPrioSelectedTorrents()
|
||||
{
|
||||
if (main_window->getCurrentTabWidget() == this)
|
||||
if (main_window->currentTabWidget() == this)
|
||||
BitTorrent::Session::instance()->topTorrentsPriority(extractHashes(getSelectedTorrents()));
|
||||
}
|
||||
|
||||
void TransferListWidget::bottomPrioSelectedTorrents()
|
||||
{
|
||||
if (main_window->getCurrentTabWidget() == this)
|
||||
if (main_window->currentTabWidget() == this)
|
||||
BitTorrent::Session::instance()->bottomTorrentsPriority(extractHashes(getSelectedTorrents()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user