Fixed: Compile errors on Linux #4168
This commit is contained in:
parent
b8a5abc19f
commit
7add4f4d3f
|
@ -108,11 +108,12 @@ void PluginManager::saveOpenSslSetup()
|
||||||
dir.mkpath(".");
|
dir.mkpath(".");
|
||||||
}
|
}
|
||||||
|
|
||||||
QString filename = m_ProfileDir;
|
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
filename.append("\\").append(kWinOpenSslSetup);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
QString filename =
|
||||||
|
QString("%1\\%2")
|
||||||
|
.arg(m_ProfileDir)
|
||||||
|
.arg(kWinOpenSslSetup);
|
||||||
|
|
||||||
QFile file(filename);
|
QFile file(filename);
|
||||||
if (!file.open(QIODevice::WriteOnly)) {
|
if (!file.open(QIODevice::WriteOnly)) {
|
||||||
|
@ -125,19 +126,18 @@ void PluginManager::saveOpenSslSetup()
|
||||||
file.write(m_DataDownloader.data());
|
file.write(m_DataDownloader.data());
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
QString openSslSetupFile = m_ProfileDir;
|
|
||||||
openSslSetupFile.append("\\").append(kWinOpenSslSetup);
|
|
||||||
|
|
||||||
QStringList installArgs;
|
QStringList installArgs;
|
||||||
installArgs.append("-s");
|
installArgs.append("-s");
|
||||||
installArgs.append("-y");
|
installArgs.append("-y");
|
||||||
|
|
||||||
if (!runProgram(openSslSetupFile, installArgs, QStringList())) {
|
if (!runProgram(filename, installArgs, QStringList())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// openssl installer no longer needed
|
// openssl installer no longer needed
|
||||||
QFile::remove(openSslSetupFile);
|
QFile::remove(filename);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
emit openSslBinaryReady();
|
emit openSslBinaryReady();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue