Commit 0b4dc724 authored by Claudio Valerio's avatar Claudio Valerio

enabled flash on linux. Add dependence when installing Sankore

parent 782a518c
...@@ -918,13 +918,7 @@ void UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QString ...@@ -918,13 +918,7 @@ void UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QString
else if (mimeType.startsWith("application/x-shockwave-flash")) else if (mimeType.startsWith("application/x-shockwave-flash"))
{ {
bool acceptFlash = true;
#ifdef Q_WS_X11
acceptFlash = false;
#endif
if (acceptFlash)
{
qDebug() << "accepting mime type" << mimeType << "as flash"; qDebug() << "accepting mime type" << mimeType << "as flash";
QString sUrl = sourceUrl.toString(); QString sUrl = sourceUrl.toString();
...@@ -967,11 +961,7 @@ void UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QString ...@@ -967,11 +961,7 @@ void UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QString
if (eduMediaFile) if (eduMediaFile)
delete eduMediaFile; delete eduMediaFile;
}
else
{
UBApplication::showMessage(tr("Flash is not supported on Sankore Linux"));
}
} }
else if (mimeType.startsWith("application/pdf")) else if (mimeType.startsWith("application/pdf"))
{ {
......
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