|
|
@ -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 |
|
|
|
|
|
|
|
|
|
|
|
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")) |
|
|
|
{ |
|
|
|
{ |
|
|
|