mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Fix MainWindow coding style (Issue #2192)
This commit is contained in:
parent
a6595507f0
commit
1760beed17
6 changed files with 702 additions and 681 deletions
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue