1
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:
David Rosca 2017-08-19 19:11:45 +02:00
parent 5812721e48
commit 08274f5bbe

View File

@ -1055,9 +1055,7 @@ void BrowserWindow::hideNavigationSlot()
bool BrowserWindow::event(QEvent* event)
{
switch (event->type()) {
case QEvent::WindowStateChange: {
QWindowStateChangeEvent* ev = static_cast<QWindowStateChangeEvent*>(event);
case QEvent::WindowStateChange:
if (!(m_oldWindowState & Qt::WindowFullScreen) && windowState() & Qt::WindowFullScreen) {
// Enter fullscreen
m_normalWindowState = m_oldWindowState;
@ -1091,7 +1089,6 @@ bool BrowserWindow::event(QEvent* event)
m_oldWindowState = windowState();
break;
}
default:
break;