Commit a40a43b5 authored by Floréal Cabanettes's avatar Floréal Cabanettes

Pywebcooking: fix recipe sent url for https

parent f2c6ddf1
......@@ -267,7 +267,7 @@ void SendPyWebCooking::handle_result(HttpRequestWorker *worker) {
int rep = QMessageBox::information((QWidget*)this->parent(), tr("Envoi terminé"), tr("Envoi terminé avec succès !\nVoulez-vous afficher la recette en ligne ?"), QMessageBox::Yes, QMessageBox::No);
if (rep == QMessageBox::Yes)
{
QString program = "\"" + cmdNav + "\" " + "http://" + map["url"].toString();
QString program = "\"" + cmdNav + "\" " + (serverConfs[config]["addrSite"].startsWith("https://") ? "https://" : "http://") + map["url"].toString();
QProcess *myProcess = new QProcess();
myProcess->setProcessChannelMode(QProcess::MergedChannels);
myProcess->start(program);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment