Commit ff25fa9f authored by pixhawk's avatar pixhawk

Corrected path

parent 91c8bcea
...@@ -74,7 +74,7 @@ QGCGoogleEarthView::QGCGoogleEarthView(QWidget *parent) : ...@@ -74,7 +74,7 @@ QGCGoogleEarthView::QGCGoogleEarthView(QWidget *parent) :
ui->setupUi(this); ui->setupUi(this);
#if (defined Q_OS_MAC) #if (defined Q_OS_MAC)
ui->webViewLayout->addWidget(webViewMac); ui->webViewLayout->addWidget(webViewMac);
connect(webViewMac, SIGNAL(loadFinished(bool)), this, SLOT(initializeGoogleEarth(bool))); //connect(webViewMac, SIGNAL(loadFinished(bool)), this, SLOT(initializeGoogleEarth(bool)));
#endif #endif
#ifdef _MSC_VER #ifdef _MSC_VER
...@@ -219,7 +219,7 @@ void QGCGoogleEarthView::showEvent(QShowEvent* event) ...@@ -219,7 +219,7 @@ void QGCGoogleEarthView::showEvent(QShowEvent* event)
#if (defined Q_OS_MAC) #if (defined Q_OS_MAC)
webViewMac->setPage(new QGCWebPage(webViewMac)); webViewMac->setPage(new QGCWebPage(webViewMac));
webViewMac->settings()->setAttribute(QWebSettings::PluginsEnabled, true); webViewMac->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
webViewMac->load(QUrl("earth.html")); webViewMac->load(QUrl(QCoreApplication::applicationDirPath()+"/earth.html"));
#endif #endif
#ifdef _MSC_VER #ifdef _MSC_VER
......
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