Commit 3031f014 authored by Andrew Voznytsa's avatar Andrew Voznytsa

Fix QGCApplication::mainRootWindow()

parent 0c53e2e7
......@@ -748,7 +748,7 @@ void QGCApplication::showMessage(const QString& message)
QQuickItem* QGCApplication::mainRootWindow()
{
if(_mainRootWindow) {
if(!_mainRootWindow) {
_mainRootWindow = reinterpret_cast<QQuickItem*>(_rootQmlObject());
}
return _mainRootWindow;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment