- Replace UniboardTool case by OpenboardTool.

preferencesAboutTextFull
agriche 9 years ago
parent 6a941e256c
commit 533c4a577f
  1. 11
      src/frameworks/UBFileSystemUtils.cpp

@ -57,7 +57,7 @@ UBFileSystemUtils::~UBFileSystemUtils()
QString UBFileSystemUtils::removeLocalFilePrefix(QString input) QString UBFileSystemUtils::removeLocalFilePrefix(QString input)
{ {
#ifdef Q_OS_WIN #ifdef Q_WS_WIN
if(input.startsWith("file:///")) if(input.startsWith("file:///"))
return input.mid(8); return input.mid(8);
else else
@ -592,12 +592,17 @@ UBMimeType::Enum UBFileSystemUtils::mimeTypeFromString(const QString& typeString
{ {
type = UBMimeType::PDF; type = UBMimeType::PDF;
} }
else if (typeString.startsWith("application/vnd.mnemis-uniboard-tool")) /* else if (typeString.startsWith("application/vnd.mnemis-uniboard-tool"))
{ {
type = UBMimeType::UniboardTool; type = UBMimeType::UniboardTool;
} } */
else if (typeString.startsWith("application/openboard-tool"))
{
type = UBMimeType::OpenboardTool;
}
return type; return type;
} }
UBMimeType::Enum UBFileSystemUtils::mimeTypeFromUrl(const QUrl& url) UBMimeType::Enum UBFileSystemUtils::mimeTypeFromUrl(const QUrl& url)

Loading…
Cancel
Save