From ff25fa9fd06ac77061e390133b7bd24e4e8bed3a Mon Sep 17 00:00:00 2001 From: pixhawk Date: Sat, 1 Jan 2011 20:20:56 +0100 Subject: [PATCH] Corrected path --- src/ui/map3D/QGCGoogleEarthView.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/map3D/QGCGoogleEarthView.cc b/src/ui/map3D/QGCGoogleEarthView.cc index 5d63bab4a..7354c9d1d 100644 --- a/src/ui/map3D/QGCGoogleEarthView.cc +++ b/src/ui/map3D/QGCGoogleEarthView.cc @@ -74,7 +74,7 @@ QGCGoogleEarthView::QGCGoogleEarthView(QWidget *parent) : ui->setupUi(this); #if (defined Q_OS_MAC) ui->webViewLayout->addWidget(webViewMac); - connect(webViewMac, SIGNAL(loadFinished(bool)), this, SLOT(initializeGoogleEarth(bool))); + //connect(webViewMac, SIGNAL(loadFinished(bool)), this, SLOT(initializeGoogleEarth(bool))); #endif #ifdef _MSC_VER @@ -219,7 +219,7 @@ void QGCGoogleEarthView::showEvent(QShowEvent* event) #if (defined Q_OS_MAC) webViewMac->setPage(new QGCWebPage(webViewMac)); webViewMac->settings()->setAttribute(QWebSettings::PluginsEnabled, true); - webViewMac->load(QUrl("earth.html")); + webViewMac->load(QUrl(QCoreApplication::applicationDirPath()+"/earth.html")); #endif #ifdef _MSC_VER -- 2.22.0