Browse Source

Fixed mac compile error

QGC4.4
pixhawk 15 years ago
parent
commit
3bff16d9ad
  1. 3
      src/ui/map3D/QGCGoogleEarthView.cc

3
src/ui/map3D/QGCGoogleEarthView.cc

@ -228,18 +228,17 @@ void QGCGoogleEarthView::initializeGoogleEarth() @@ -228,18 +228,17 @@ void QGCGoogleEarthView::initializeGoogleEarth()
{
#ifdef Q_OS_MAC
if (!webViewMac->page()->currentFrame()->evaluateJavaScript("isInitialized();").toBool())
{
#endif
#ifdef _MSC_VER
static bool first = true;
if (first)
#endif
{
QTimer::singleShot(500, this, SLOT(initializeGoogleEarth()));
first = false;
}
else
{
#ifdef _MSC_VER
QAxObject* doc = webViewWin->querySubObject("Document()");
IDispatch* Disp;
IDispatch* winDoc = NULL;

Loading…
Cancel
Save