mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Avoid falling through the switch case
This commit is contained in:
parent
a16d0f8d28
commit
a6d2f5186f
@ -453,19 +453,19 @@ void PropertiesWidget::loadDynamicData() {
|
|||||||
showPiecesAvailability(false);
|
showPiecesAvailability(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case PropTabBar::TRACKERS_TAB: {
|
case PropTabBar::TRACKERS_TAB: {
|
||||||
// Trackers
|
// Trackers
|
||||||
trackerList->loadTrackers();
|
trackerList->loadTrackers();
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case PropTabBar::PEERS_TAB: {
|
case PropTabBar::PEERS_TAB: {
|
||||||
// Load peers
|
// Load peers
|
||||||
peersList->loadPeers(m_torrent);
|
peersList->loadPeers(m_torrent);
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case PropTabBar::FILES_TAB: {
|
case PropTabBar::FILES_TAB: {
|
||||||
@ -480,10 +480,10 @@ void PropertiesWidget::loadDynamicData() {
|
|||||||
// PropListModel->model()->updateFilesPriorities(h.file_priorities());
|
// PropListModel->model()->updateFilesPriorities(h.file_priorities());
|
||||||
filesList->setUpdatesEnabled(true);
|
filesList->setUpdatesEnabled(true);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user