aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
Diffstat (limited to 'launcher')
-rw-r--r--launcher/ui/dialogs/CopyInstanceDialog.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/launcher/ui/dialogs/CopyInstanceDialog.cpp b/launcher/ui/dialogs/CopyInstanceDialog.cpp
index 44e70012..1b8e2aa0 100644
--- a/launcher/ui/dialogs/CopyInstanceDialog.cpp
+++ b/launcher/ui/dialogs/CopyInstanceDialog.cpp
@@ -141,14 +141,7 @@ void CopyInstanceDialog::checkAllCheckboxes(const bool& b)
// Sets b to true if state is a checked checkbox
void CopyInstanceDialog::checkBool(bool& b, const int& state)
{
- if(state == Qt::Unchecked)
- {
- b = false;
- }
- else if(state == Qt::Checked)
- {
- b = true;
- }
+ b = (state == Qt::Checked);
// Have "Select all" checkbox checked if all options are already checked:
ui->selectAllCheckbox->blockSignals(true);