From a6110cf7ac7693a603168e51c4bef8edaacaab5f Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Thu, 27 Jan 2022 15:40:45 -0500 Subject: [PATCH] Fix critical bug that made InkBox segfault on certain devices --- mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index db005da..a79c1e0 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -181,11 +181,10 @@ MainWindow::MainWindow(QWidget *parent) ui->recentBooksLabel->hide(); // Deleting/Hiding "Library" button if device is not WiFi-able + // NOTE: Using deleteLater() on these elements causes a segmentation fault and aborts the whole program when the Settings, Apps or Home button is pressed. No idea why. if(global::device::isWifiAble == false && readFile("/opt/inkbox_device") != "emu\n") { ui->libraryButton->hide(); ui->line_10->hide(); - ui->libraryButton->deleteLater(); - ui->line_10->deleteLater(); } // Stylesheet