diff options
-rw-r--r-- | navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp b/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp index 13e6bb60f..4c76a1add 100644 --- a/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp +++ b/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp @@ -1061,11 +1061,11 @@ static void * get_data(struct graphics_priv *this_, const char *type) _outerWidget->setLayout(_outerLayout); _outerLayout->addWidget(this_->widget); _outerLayout->setCurrentWidget(this_->widget); - _outerWidget->show(); xid=getenv("NAVIT_XID"); if (xid.length()>0) { _outerWidget->embedInto(xid.toULong(&ok,0)); } + _outerWidget->show(); #endif /* QT_QPAINTER_USE_EMBEDDING */ if (this_->w && this_->h) this_->widget->show(); |