Started to simplify program preferences (merged UPnP/NAT-PMP)

This commit is contained in:
Christophe Dumez
2010-12-05 16:29:18 +00:00
parent 8bcb51ba9c
commit 3feffdf8fa
9 changed files with 21 additions and 69 deletions

View File

@@ -335,14 +335,6 @@ public:
setValue(QString::fromUtf8("Preferences/Connection/UPnP"), enabled);
}
bool isNATPMPEnabled() const {
return value(QString::fromUtf8("Preferences/Connection/NAT-PMP"), true).toBool();
}
void setNATPMPEnabled(bool enabled) {
setValue(QString::fromUtf8("Preferences/Connection/NAT-PMP"), enabled);
}
int getGlobalDownloadLimit() const {
return value("Preferences/Connection/GlobalDLLimit", -1).toInt();
}