mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
- Done optimizing foreach loops
This commit is contained in:
parent
cc77b2f578
commit
17e0700a52
2 changed files with 2 additions and 3 deletions
|
@ -49,8 +49,7 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||
setupUi(this);
|
||||
// Get apply button in button box
|
||||
QList<QAbstractButton *> buttons = buttonBox->buttons();
|
||||
QAbstractButton *button;
|
||||
foreach(button, buttons){
|
||||
foreach(QAbstractButton *button, buttons){
|
||||
if(buttonBox->buttonRole(button) == QDialogButtonBox::ApplyRole){
|
||||
applyButton = button;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue