Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExMix <rahuba.youri@mapswithme.com>2015-07-29 21:01:25 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:09:33 +0300
commitced224e1f71b5ab1aca52ba5150d9b4803b434ad (patch)
treee438624335cdb3827a893960bb73dca789ae65e4 /qt/draw_widget.cpp
parent1be68b2b557b6cd145fc1372f63f7fd8460534df (diff)
[drape] crash fix. If user on mac press cmd+q, closeEvent comes twice
Diffstat (limited to 'qt/draw_widget.cpp')
-rw-r--r--qt/draw_widget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt/draw_widget.cpp b/qt/draw_widget.cpp
index 92bd521bb6..c414318da2 100644
--- a/qt/draw_widget.cpp
+++ b/qt/draw_widget.cpp
@@ -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);