mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-28 08:37:22 -08:00
Fix critical bug that made InkBox segfault on certain devices
This commit is contained in:
parent
48f97fa5e6
commit
a6110cf7ac
1 changed files with 1 additions and 2 deletions
|
@ -181,11 +181,10 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
ui->recentBooksLabel->hide();
|
ui->recentBooksLabel->hide();
|
||||||
|
|
||||||
// Deleting/Hiding "Library" button if device is not WiFi-able
|
// 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") {
|
if(global::device::isWifiAble == false && readFile("/opt/inkbox_device") != "emu\n") {
|
||||||
ui->libraryButton->hide();
|
ui->libraryButton->hide();
|
||||||
ui->line_10->hide();
|
ui->line_10->hide();
|
||||||
ui->libraryButton->deleteLater();
|
|
||||||
ui->line_10->deleteLater();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stylesheet
|
// Stylesheet
|
||||||
|
|
Loading…
Reference in a new issue