Browse Source

Merge pull request #3932 from Chocobo1/refactor

Refactor
adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
c771703c34
  1. 2
      src/core/net/private/geoipdatabase.cpp
  2. 10
      src/gui/properties/propertieswidget.cpp

2
src/core/net/private/geoipdatabase.cpp

@ -392,6 +392,8 @@ QVariant GeoIPDatabase::readDataField(quint32 &offset) const
else else
qDebug() << "* Invalid field size for type: Float"; qDebug() << "* Invalid field size for type: Float";
break; break;
default:
qDebug() << "* Unsupported data type: Unknown";
} }
if (!usePointer) if (!usePointer)

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