From 8de53f18e69a9df3288e43038a210a3782218b3c Mon Sep 17 00:00:00 2001 From: Max Paperno Date: Mon, 4 Jun 2018 05:12:57 -0400 Subject: [PATCH] [LogsDialog] Fix GE export on OSX (since 9796654). --- companion/src/logsdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()