Simplify if statement

This commit is contained in:
Anton Lashkov 2016-10-30 22:52:27 +04:00 committed by sledgehammer999
parent 086588eeed
commit a25a15d1c6

View file

@ -194,7 +194,7 @@ void PropertiesWidget::showPiecesAvailability(bool show)
avail_pieces_lbl->setVisible(show);
pieces_availability->setVisible(show);
avail_average_lbl->setVisible(show);
if (show || (!show && !downloaded_pieces->isVisible()))
if (show || !downloaded_pieces->isVisible())
line_2->setVisible(show);
}
@ -203,7 +203,7 @@ void PropertiesWidget::showPiecesDownloaded(bool show)
downloaded_pieces_lbl->setVisible(show);
downloaded_pieces->setVisible(show);
progress_lbl->setVisible(show);
if (show || (!show && !pieces_availability->isVisible()))
if (show || !pieces_availability->isVisible())
line_2->setVisible(show);
}