Commit a74d840f authored by Craig Watson's avatar Craig Watson

Fix built-in applications' icons not being set when added to favorites

parent 6771615d
...@@ -620,7 +620,7 @@ void UBFeaturesController::removeFromFavorite( const QUrl &path, bool deleteManu ...@@ -620,7 +620,7 @@ void UBFeaturesController::removeFromFavorite( const QUrl &path, bool deleteManu
QString UBFeaturesController::fileNameFromUrl( const QUrl &url ) QString UBFeaturesController::fileNameFromUrl( const QUrl &url )
{ {
QString fileName = url.toString(); QString fileName = url.toString();
if ( fileName.contains( "OpenboardTool://")) if ( fileName.contains( "openboardtool://"))
return fileName; return fileName;
return url.toLocalFile(); return url.toLocalFile();
} }
...@@ -630,7 +630,7 @@ UBFeatureElementType UBFeaturesController::fileTypeFromUrl(const QString &path) ...@@ -630,7 +630,7 @@ UBFeatureElementType UBFeaturesController::fileTypeFromUrl(const QString &path)
{ {
QFileInfo fileInfo(path); QFileInfo fileInfo(path);
if ( path.contains("OpenboardTool://")) if ( path.contains("openboardtool://"))
return FEATURE_INTERNAL; return FEATURE_INTERNAL;
if (!fileInfo.exists()) { if (!fileInfo.exists()) {
......
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