Browse Source

Avoid falling through the switch case

adaptive-webui-19844
Chocobo1 9 years ago
parent
commit
a6d2f5186f
  1. 10
      src/gui/properties/propertieswidget.cpp

10
src/gui/properties/propertieswidget.cpp

@ -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…
Cancel
Save