From dcbc20f1c0ee86841e4afb221c9bd652083d0df8 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Tue, 13 Oct 2015 15:14:21 +0200 Subject: [PATCH] Fixes #2876 --- companion/src/mainwindow.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/companion/src/mainwindow.cpp b/companion/src/mainwindow.cpp index 2460d461a..9532a339d 100644 --- a/companion/src/mainwindow.cpp +++ b/companion/src/mainwindow.cpp @@ -298,11 +298,7 @@ void MainWindow::checkForCompanionUpdateFinished(QNetworkReply * reply) QMessageBox::Yes | QMessageBox::No); if (ret == QMessageBox::Yes) { -#if defined __APPLE__ - QString fileName = QFileDialog::getSaveFileName(this, tr("Save As"), g.updatesDir() + QString(COMPANION_INSTALLER).arg(version)); -#else - QString fileName = QFileDialog::getSaveFileName(this, tr("Save As"), g.updatesDir() + QString(COMPANION_INSTALLER).arg(version), tr("Executable (*.exe)")); -#endif + QString fileName = QFileDialog::getSaveFileName(this, tr("Save As"), qDir(g.updatesDir()).absoluteFilePath(QString(COMPANION_INSTALLER).arg(version)), tr("Executable (*.exe)")); if (!fileName.isEmpty()) { g.updatesDir(QFileInfo(fileName).dir().absolutePath()); downloadDialog * dd = new downloadDialog(this, QString("%1/%2").arg(getCompanionUpdateBaseUrl()).arg(QString(COMPANION_INSTALLER).arg(version)), fileName);