mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-18 16:10:07 +00:00
Qt: Add missing event type check
This commit is contained in:
parent
da6ba416c9
commit
2aaeaf6f99
@ -2648,7 +2648,8 @@ void MainWindow::closeEvent(QCloseEvent* event)
|
|||||||
|
|
||||||
void MainWindow::changeEvent(QEvent* 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.
|
// TODO: This should check the render-to-main option.
|
||||||
if (m_display_widget)
|
if (m_display_widget)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user