diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2015-07-29 21:01:25 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-11-30 16:09:33 +0300 |
commit | ced224e1f71b5ab1aca52ba5150d9b4803b434ad (patch) | |
tree | e438624335cdb3827a893960bb73dca789ae65e4 /qt/draw_widget.cpp | |
parent | 1be68b2b557b6cd145fc1372f63f7fd8460534df (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.cpp | 3 |
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); |