From 8976afe3bc6c75a2c5af675e9de54803d421deac Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Wed, 14 Oct 2015 07:13:29 +0200 Subject: [PATCH] VC++ compilation fix --- companion/src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/companion/src/mainwindow.cpp b/companion/src/mainwindow.cpp index 9532a339d..e30143ba5 100644 --- a/companion/src/mainwindow.cpp +++ b/companion/src/mainwindow.cpp @@ -298,7 +298,8 @@ void MainWindow::checkForCompanionUpdateFinished(QNetworkReply * reply) QMessageBox::Yes | QMessageBox::No); if (ret == QMessageBox::Yes) { - QString fileName = QFileDialog::getSaveFileName(this, tr("Save As"), qDir(g.updatesDir()).absoluteFilePath(QString(COMPANION_INSTALLER).arg(version)), tr("Executable (*.exe)")); + QDir dir(g.updatesDir()); + QString fileName = QFileDialog::getSaveFileName(this, tr("Save As"), dir.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);