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