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…
Reference in New Issue