Browse Source

Fix need restart to enable/disable peer countries resolution.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 10 years ago
parent
commit
84922dcdcf
  1. 8
      src/gui/properties/peerlistwidget.cpp

8
src/gui/properties/peerlistwidget.cpp

@ -141,8 +141,14 @@ void PeerListWidget::updatePeerCountryResolutionState()
{ {
if (Preferences::instance()->resolvePeerCountries() != m_displayFlags) { if (Preferences::instance()->resolvePeerCountries() != m_displayFlags) {
m_displayFlags = !m_displayFlags; m_displayFlags = !m_displayFlags;
if (m_displayFlags) if (m_displayFlags) {
loadPeers(m_properties->getCurrentTorrent()); loadPeers(m_properties->getCurrentTorrent());
showColumn(PeerListDelegate::COUNTRY);
resizeColumnToContents(PeerListDelegate::COUNTRY);
}
else {
hideColumn(PeerListDelegate::COUNTRY);
}
} }
} }

Loading…
Cancel
Save