mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-13 18:04:32 +00:00
Qt: Add missing event type check
This commit is contained in:
@@ -2648,7 +2648,8 @@ void MainWindow::closeEvent(QCloseEvent* event)
|
||||
|
||||
void MainWindow::changeEvent(QEvent* event)
|
||||
{
|
||||
if (static_cast<QWindowStateChangeEvent*>(event)->oldState() & Qt::WindowMinimized)
|
||||
if (event->type() == QEvent::WindowStateChange &&
|
||||
static_cast<QWindowStateChangeEvent*>(event)->oldState() & Qt::WindowMinimized)
|
||||
{
|
||||
// TODO: This should check the render-to-main option.
|
||||
if (m_display_widget)
|
||||
|
||||
Reference in New Issue
Block a user