forked from organicmaps/organicmaps
[drape] crash fix. If user on mac press cmd+q, closeEvent comes twice
This commit is contained in:
parent
1be68b2b55
commit
ced224e1f7
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ bool IsLocationEmulation(QMouseEvent * e)
|
|||
|
||||
void DrawWidget::PrepareShutdown()
|
||||
{
|
||||
if (!m_contextFactory)
|
||||
return;
|
||||
|
||||
// Discard current and all future Swap requests
|
||||
m_contextFactory->shutDown();
|
||||
frameSwappedSlot(NotInitialized);
|
||||
|
|
Loading…
Add table
Reference in a new issue