mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Fix build warning
This commit is contained in:
parent
5812721e48
commit
08274f5bbe
@ -1055,9 +1055,7 @@ void BrowserWindow::hideNavigationSlot()
|
|||||||
bool BrowserWindow::event(QEvent* event)
|
bool BrowserWindow::event(QEvent* event)
|
||||||
{
|
{
|
||||||
switch (event->type()) {
|
switch (event->type()) {
|
||||||
case QEvent::WindowStateChange: {
|
case QEvent::WindowStateChange:
|
||||||
QWindowStateChangeEvent* ev = static_cast<QWindowStateChangeEvent*>(event);
|
|
||||||
|
|
||||||
if (!(m_oldWindowState & Qt::WindowFullScreen) && windowState() & Qt::WindowFullScreen) {
|
if (!(m_oldWindowState & Qt::WindowFullScreen) && windowState() & Qt::WindowFullScreen) {
|
||||||
// Enter fullscreen
|
// Enter fullscreen
|
||||||
m_normalWindowState = m_oldWindowState;
|
m_normalWindowState = m_oldWindowState;
|
||||||
@ -1091,7 +1089,6 @@ bool BrowserWindow::event(QEvent* event)
|
|||||||
|
|
||||||
m_oldWindowState = windowState();
|
m_oldWindowState = windowState();
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user