Commit b4b0b931 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

qpa: Don't delete platform screens manually

According to the documentation, deleting a platform screen manually can
lead to a crash due to a call to a pure virtual method.
parent c7e5680d
...@@ -46,7 +46,9 @@ Integration::Integration() ...@@ -46,7 +46,9 @@ Integration::Integration()
Integration::~Integration() Integration::~Integration()
{ {
qDeleteAll(m_screens); for (QPlatformScreen *platformScreen : m_screens) {
QWindowSystemInterface::handleScreenRemoved(platformScreen);
}
} }
bool Integration::hasCapability(Capability cap) const bool Integration::hasCapability(Capability cap) const
......
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