Commit 10ce9f23 authored by Jan Möbius's avatar Jan Möbius

Windows does not handle mailto correctly!

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10525 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 981432ec
......@@ -327,8 +327,17 @@ void Core::loadPlugins()
QMessageBox::StandardButton button = QMessageBox::warning ( 0, tr("Plugin License check failed, issuer is: %1").arg( it.key() ), request.join("\n") + tr("\n\n Open in Mail program?"),QMessageBox::Yes | QMessageBox::No,QMessageBox::Yes );
if ( button == QMessageBox::Yes )
QDesktopServices::openUrl(QUrl(tr("mailto:%1?subject=License Request&body=%2").arg(it.key()).arg(it.value()), QUrl::TolerantMode));
if ( button == QMessageBox::Yes ) {
QString url = "mailto:" + it.key();
url += "?subject=License Request&body=";
#ifdef WIN32
url += request.join(";;");
#else
url += request.join("\n");
#endif
QUrl encodedURL(url, QUrl::TolerantMode);
QDesktopServices::openUrl(encodedURL);
}
}
......
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