From 36901295b2221e021521d065c57250ca1206121d Mon Sep 17 00:00:00 2001 From: Anton Lashkov Date: Sun, 30 Oct 2016 22:52:27 +0400 Subject: [PATCH] Simplify `if` statement --- src/gui/properties/propertieswidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index 5fbb2b625..f0393742e 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -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); }