Commit 8725eab6 authored by Laurent Montel's avatar Laurent Montel 😁

Fix compile warning

parent 31d6ba28
......@@ -176,6 +176,9 @@ bool SystemTrayIcon::eventFilter(QObject *o, QEvent *e)
case QEvent::Close:
doMainWindowClosed(static_cast<QWidget *>(o));
// fall through:
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
Q_FALLTHROUGH();
#endif
case QEvent::Show:
case QEvent::DeferredDelete:
QMetaObject::invokeMethod(this, "slotEnableDisableActions", Qt::QueuedConnection);
......@@ -186,6 +189,9 @@ bool SystemTrayIcon::eventFilter(QObject *o, QEvent *e)
case QEvent::Close:
doAttentionWindowClosed(static_cast<QWidget *>(o));
// fall through:
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
Q_FALLTHROUGH();
#endif
case QEvent::Show:
case QEvent::DeferredDelete:
QMetaObject::invokeMethod(this, "slotEnableDisableActions", Qt::QueuedConnection);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment