diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-23 03:19:18 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-23 03:19:18 -0600 |
commit | cd7bf11ba9885d974f94c0ae57709b99c63b92c2 (patch) | |
tree | e23c9af8c9fc0acc5bc01cf957906a3ded3f0ce7 /ui/qt5/bootpage.cc | |
parent | 86f415d369a209dcd656584697c51d3171e7cee0 (diff) | |
download | horizon-cd7bf11ba9885d974f94c0ae57709b99c63b92c2.tar.gz horizon-cd7bf11ba9885d974f94c0ae57709b99c63b92c2.tar.bz2 horizon-cd7bf11ba9885d974f94c0ae57709b99c63b92c2.tar.xz horizon-cd7bf11ba9885d974f94c0ae57709b99c63b92c2.zip |
Qt UI: Fix small memory leaks
Diffstat (limited to 'ui/qt5/bootpage.cc')
-rw-r--r-- | ui/qt5/bootpage.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt5/bootpage.cc b/ui/qt5/bootpage.cc index 09bebbf..baa9c67 100644 --- a/ui/qt5/bootpage.cc +++ b/ui/qt5/bootpage.cc @@ -3,7 +3,7 @@ * horizon-qt5, the Qt 5 user interface for * Project Horizon * - * Copyright (c) 2019 Adélie Linux and contributors. All rights reserved. + * Copyright (c) 2019-2020 Adélie Linux and contributors. All rights reserved. * This code is licensed under the AGPL 3.0 license, as noted in the * LICENSE-code file in the root directory of this repository. * @@ -34,7 +34,7 @@ BootPage::BootPage(QWidget *parent) : HorizonWizardPage(parent) { yesGrub->setWhatsThis(tr("This option will install a bootloader to your hard disk, replacing any other bootloader if present.")); noGrub = new QRadioButton(tr("&Do not install a boot loader.")); noGrub->setWhatsThis(tr("This option will not install a bootloader to your hard disk. You may be required to configure a bootloader yourself before your computer will start up properly.")); - QButtonGroup *grubChoices = new QButtonGroup; + QButtonGroup *grubChoices = new QButtonGroup(this); grubChoices->addButton(yesGrub, true); grubChoices->addButton(noGrub, false); connect(grubChoices, static_cast<void (QButtonGroup:: *)(int)>(&QButtonGroup::buttonClicked), |