1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-02 01:44:26 +00:00

Port spinbox is now disabled correctly.

This commit is contained in:
sledgehammer999 2013-06-30 15:51:15 +03:00
parent be5a1ae272
commit a261ab14ee

View File

@ -628,6 +628,7 @@ void options_imp::loadOptions() {
spinPort->setValue(pref.getSessionPort()); spinPort->setValue(pref.getSessionPort());
checkUPnP->setChecked(pref.isUPnPEnabled()); checkUPnP->setChecked(pref.isUPnPEnabled());
checkRandomPort->setChecked(pref.useRandomPort()); checkRandomPort->setChecked(pref.useRandomPort());
spinPort->setDisabled(checkRandomPort->isChecked());
intValue = pref.getGlobalDownloadLimit(); intValue = pref.getGlobalDownloadLimit();
if (intValue > 0) { if (intValue > 0) {
// Enabled // Enabled