diff options
| author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-10-14 20:13:07 +0000 |
|---|---|---|
| committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-10-14 20:13:07 +0000 |
| commit | dbd27caf11acd5cfc9d49798b116e40dddae768b (patch) | |
| tree | c5dfcca02a15afa6298a0f4b1d4d2f86bb5cc3c1 /navit/gui/qml/gui_qml.cpp | |
| parent | 43990c01598dc6201fc837530eb0a969eddf852c (diff) | |
| download | navit-dbd27caf11acd5cfc9d49798b116e40dddae768b.tar.gz | |
Fix:gui/qml:Abort if NAVIT_XID is not set.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5250 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/gui/qml/gui_qml.cpp')
| -rw-r--r-- | navit/gui/qml/gui_qml.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/navit/gui/qml/gui_qml.cpp b/navit/gui/qml/gui_qml.cpp index 4d042b7f8..0f6284565 100644 --- a/navit/gui/qml/gui_qml.cpp +++ b/navit/gui/qml/gui_qml.cpp @@ -276,6 +276,10 @@ static int gui_qml_set_graphics(struct gui_priv *this_, struct graphics *gra) xid=getenv("NAVIT_XID"); if (xid.length()>0) { _mainWindow->embedInto(xid.toULong(&ok,0)); + }else{ + dbg(0, "\nFATAL: Environment variable NAVIT_XID not set.\n" + " Please set NAVIT_XID to the window ID of the window to embed into.\n"); + exit(1); } #endif /* Q_WS_X11 */ this_->mainWindow=_mainWindow; |
