From 8422cb395a5fac1894004fff3240b6df69bec725 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 14 Mar 2008 20:54:02 +0000 Subject: [PATCH] - Fixed unlimited download limit problem (trayicon) --- src/options_imp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options_imp.cpp b/src/options_imp.cpp index 932892bce..e4635053d 100644 --- a/src/options_imp.cpp +++ b/src/options_imp.cpp @@ -448,7 +448,7 @@ void options_imp::loadOptions(){ checkUPnP->setChecked(settings.value(QString::fromUtf8("UPnP"), true).toBool()); checkNATPMP->setChecked(settings.value(QString::fromUtf8("NAT-PMP"), true).toBool()); intValue = settings.value(QString::fromUtf8("GlobalDLLimit"), -1).toInt(); - if(intValue != -1) { + if(intValue > 0) { // Enabled checkDownloadLimit->setChecked(true); spinDownloadLimit->setEnabled(true);