Skip to content

Commit

Permalink
Disbale and hide the back_5 button until #1 fixes
Browse files Browse the repository at this point in the history
- Hide the back_5 button until the #1 issue is fixed as calling the dynamic QlineEdit creation function leaks memory
  • Loading branch information
Abir-Tx committed Mar 15, 2021
1 parent dd33e91 commit 61cec3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 61cec3f

Please sign in to comment.