mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
Fix coverity issues
torrentcontentmodel: Use a variable to store filesCount optionsdlg: add fallthrough comment to suppress warning speedPlotview: initialize member misc: fix wrong type used, add spaces
This commit is contained in:
parent
cab10aa7b4
commit
4ad541d066
4 changed files with 22 additions and 9 deletions
|
@ -845,16 +845,21 @@ void OptionsDialog::loadOptions()
|
|||
case ProxyType::SOCKS4:
|
||||
m_ui->comboProxyType->setCurrentIndex(1);
|
||||
break;
|
||||
|
||||
case ProxyType::SOCKS5_PW:
|
||||
useProxyAuth = true;
|
||||
// fallthrough
|
||||
case ProxyType::SOCKS5:
|
||||
m_ui->comboProxyType->setCurrentIndex(2);
|
||||
break;
|
||||
|
||||
case ProxyType::HTTP_PW:
|
||||
useProxyAuth = true;
|
||||
// fallthrough
|
||||
case ProxyType::HTTP:
|
||||
m_ui->comboProxyType->setCurrentIndex(3);
|
||||
break;
|
||||
|
||||
default:
|
||||
m_ui->comboProxyType->setCurrentIndex(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue