summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/networkpkgmgr.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp
index 318b26d..3ce7960 100644
--- a/noncore/settings/aqpkg/networkpkgmgr.cpp
+++ b/noncore/settings/aqpkg/networkpkgmgr.cpp
@@ -84,4 +84,5 @@ void NetworkPackageManager :: updateData()
packagesList->clear();
+
vector<Server>::iterator it;
int activeItem = -1;
@@ -89,4 +90,9 @@ void NetworkPackageManager :: updateData()
for ( i = 0, it = dataMgr->getServerList().begin() ; it != dataMgr->getServerList().end() ; ++it, ++i )
{
+ if ( !it->isServerActive() )
+ {
+ i--;
+ continue;
+ }
serversList->insertItem( it->getServerName() );
if ( it->getServerName() == currentlySelectedServer )