Skip to content

Commit

Permalink
Fixed mac compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
pixhawk-students committed Dec 29, 2010
1 parent f182d29 commit 3bff16d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui/map3D/QGCGoogleEarthView.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3bff16d

Please sign in to comment.