Skip to content

Commit

Permalink
Attempt to fix coverity build
Browse files Browse the repository at this point in the history
  • Loading branch information
calc84maniac committed Jun 16, 2024
1 parent c1a2f1a commit e75bfa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/qt/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <cmath>
#include <QtGui/QScreen>
#include <QtGui/QStandardItemModel>
#include <QtGui/QWindow>
#include <QtCore/QFileInfo>
#include <QtCore/QRegularExpression>
#include <QtNetwork/QNetworkAccessManager>
Expand Down Expand Up @@ -907,7 +908,7 @@ void MainWindow::setFullscreen(int value) {
ui->lcd->setParent(this);
ui->lcd->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
// The order here is important, must move to the new screen before setting window flags
ui->lcd->setGeometry(screen()->availableGeometry());
ui->lcd->setGeometry(windowHandle()->screen()->availableGeometry());
ui->lcd->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint | Qt::CustomizeWindowHint);
ui->lcd->showFullScreen();
ui->lcd->installEventFilter(keypadBridge);
Expand Down

0 comments on commit e75bfa3

Please sign in to comment.