diff options
author | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-01 15:00:52 +0000 |
---|---|---|
committer | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-01 15:00:52 +0000 |
commit | a0932d4bc9d059e1bfe373efbabbcce0addbbd6e (patch) | |
tree | ba3f2877555e53e895457cb27a15450a57cb0b67 /navit | |
parent | 704d9a1512f38a56e973963b64ea234674061565 (diff) | |
download | navit-a0932d4bc9d059e1bfe373efbabbcce0addbbd6e.tar.gz |
Fix:graphics_qt_qpainter:show the embedded widget after we set the XID, thanks to :lostincompilation
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3844 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit')
-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(); |