From 84922dcdcf81eb3425a0a08d1d7a8014fd680fef Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Thu, 18 Jun 2015 19:44:01 +0300 Subject: [PATCH] Fix need restart to enable/disable peer countries resolution. --- src/gui/properties/peerlistwidget.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/properties/peerlistwidget.cpp b/src/gui/properties/peerlistwidget.cpp index 7ea52a93b..3e2e0d747 100644 --- a/src/gui/properties/peerlistwidget.cpp +++ b/src/gui/properties/peerlistwidget.cpp @@ -141,8 +141,14 @@ void PeerListWidget::updatePeerCountryResolutionState() { if (Preferences::instance()->resolvePeerCountries() != m_displayFlags) { m_displayFlags = !m_displayFlags; - if (m_displayFlags) + if (m_displayFlags) { loadPeers(m_properties->getCurrentTorrent()); + showColumn(PeerListDelegate::COUNTRY); + resizeColumnToContents(PeerListDelegate::COUNTRY); + } + else { + hideColumn(PeerListDelegate::COUNTRY); + } } }