From 61cec3fe994fc340147a1ec37443ac6fec9debd2 Mon Sep 17 00:00:00 2001 From: Mushfiqur Rahman Abir <28858998+Abir-Tx@users.noreply.github.com> Date: Tue, 16 Mar 2021 03:21:22 +0600 Subject: [PATCH] Disbale and hide the back_5 button until #1 fixes - Hide the back_5 button until the #1 issue is fixed as calling the dynamic QlineEdit creation function leaks memory --- sfo.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sfo.cpp b/sfo.cpp index a00087c..36773f0 100644 --- a/sfo.cpp +++ b/sfo.cpp @@ -251,6 +251,13 @@ void sfo::on_next_4_clicked() // Disable the open location button ui->pushButton_2->setDisabled(true); + + // Disbale and hide the back_5 button to disable the users to go to previous + // Page as the dynamic QlineEdit is currently leaking memory if called twice + // So untill this is fixed I am hiding the back button to prevent users from going to previous screen easily + + ui->back_5->setDisabled(true); + ui->back_5->hide(); } void sfo::on_back_5_clicked()