VC++ compilation fix

This commit is contained in:
Bertrand Songis
2015-10-14 07:13:29 +02:00
parent e326cb8515
commit 8976afe3bc
+2 -1
View File
@@ -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);