diff --git a/companion/src/logsdialog.cpp b/companion/src/logsdialog.cpp index cf30098f7..ed28245ba 100644 --- a/companion/src/logsdialog.cpp +++ b/companion/src/logsdialog.cpp @@ -420,15 +420,15 @@ void LogsDialog::exportToGoogleEarth() outputStream << "\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n"; geFile.close(); + QString gePath = g.gePath(); QStringList parameters; #ifdef __APPLE__ - QString gePath = g.gePath(); parameters << "-a"; parameters << gePath; gePath = "/usr/bin/open"; #endif parameters << geFilename; - QProcess::startDetached(g.gePath(), parameters); + QProcess::startDetached(gePath, parameters); } void LogsDialog::on_mapsButton_clicked()