|
|
@ -854,8 +854,6 @@ QString UBSettings::uniboardUserVideoDirectory() |
|
|
|
QString valideUserVideoDirectory = |
|
|
|
QString valideUserVideoDirectory = |
|
|
|
UBDesktopServices::storageLocation(QDesktopServices::MoviesLocation); |
|
|
|
UBDesktopServices::storageLocation(QDesktopServices::MoviesLocation); |
|
|
|
|
|
|
|
|
|
|
|
bool hasCreatedDir = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// first look into the application settings
|
|
|
|
// first look into the application settings
|
|
|
|
if (sAppSettings && getAppSettings()->contains("App/UserVideoDirectory")) |
|
|
|
if (sAppSettings && getAppSettings()->contains("App/UserVideoDirectory")) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -889,7 +887,6 @@ QString UBSettings::uniboardUserVideoDirectory() |
|
|
|
if (!dir.exists()) |
|
|
|
if (!dir.exists()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
dir.mkpath(userVideoDirectory); |
|
|
|
dir.mkpath(userVideoDirectory); |
|
|
|
hasCreatedDir = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (dir.exists()) |
|
|
|
if (dir.exists()) |
|
|
@ -898,7 +895,6 @@ QString UBSettings::uniboardUserVideoDirectory() |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
hasCreatedDir = false; |
|
|
|
|
|
|
|
qWarning() << "Failed to interpret App/UserVideoDirectory config : " |
|
|
|
qWarning() << "Failed to interpret App/UserVideoDirectory config : " |
|
|
|
+ getAppSettings()->value("App/UserVideoDirectory").toString() |
|
|
|
+ getAppSettings()->value("App/UserVideoDirectory").toString() |
|
|
|
+ ", defaulting to " + valideUserVideoDirectory; |
|
|
|
+ ", defaulting to " + valideUserVideoDirectory; |
|
|
@ -929,8 +925,6 @@ QString UBSettings::podcastRecordingDirectory() |
|
|
|
QString validePodcastRecordingDirectory = |
|
|
|
QString validePodcastRecordingDirectory = |
|
|
|
UBDesktopServices::storageLocation(QDesktopServices::DesktopLocation); |
|
|
|
UBDesktopServices::storageLocation(QDesktopServices::DesktopLocation); |
|
|
|
|
|
|
|
|
|
|
|
bool hasCreatedDir = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// first look into the application settings
|
|
|
|
// first look into the application settings
|
|
|
|
if (sAppSettings && getAppSettings()->contains("Podcast/RecordingDirectory")) |
|
|
|
if (sAppSettings && getAppSettings()->contains("Podcast/RecordingDirectory")) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -964,7 +958,6 @@ QString UBSettings::podcastRecordingDirectory() |
|
|
|
if (!dir.exists()) |
|
|
|
if (!dir.exists()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
dir.mkpath(userPodcastRecordingDirectory); |
|
|
|
dir.mkpath(userPodcastRecordingDirectory); |
|
|
|
hasCreatedDir = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (dir.exists()) |
|
|
|
if (dir.exists()) |
|
|
@ -973,7 +966,6 @@ QString UBSettings::podcastRecordingDirectory() |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
hasCreatedDir = false; |
|
|
|
|
|
|
|
qWarning() << "Failed to interpret Podcast/RecordingDirectory config : " |
|
|
|
qWarning() << "Failed to interpret Podcast/RecordingDirectory config : " |
|
|
|
+ getAppSettings()->value("Podcast/RecordingDirectory").toString() |
|
|
|
+ getAppSettings()->value("Podcast/RecordingDirectory").toString() |
|
|
|
+ ", defaulting to user Desktop"; |
|
|
|
+ ", defaulting to user Desktop"; |
|
|
@ -1099,8 +1091,6 @@ QString UBSettings::uniboardInteractiveUserDirectory() |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString valideUserInteractiveDirectory = uniboardDataDirectory() + "/interactive content"; |
|
|
|
QString valideUserInteractiveDirectory = uniboardDataDirectory() + "/interactive content"; |
|
|
|
|
|
|
|
|
|
|
|
bool hasCreatedDir = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// first look into the application settings
|
|
|
|
// first look into the application settings
|
|
|
|
if (sAppSettings && getAppSettings()->contains("App/UserInteractiveContentDirectory")) |
|
|
|
if (sAppSettings && getAppSettings()->contains("App/UserInteractiveContentDirectory")) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1129,7 +1119,6 @@ QString UBSettings::uniboardInteractiveUserDirectory() |
|
|
|
if (!dir.exists()) |
|
|
|
if (!dir.exists()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
dir.mkpath(userWidgetDirectory); |
|
|
|
dir.mkpath(userWidgetDirectory); |
|
|
|
hasCreatedDir = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (dir.exists()) |
|
|
|
if (dir.exists()) |
|
|
@ -1138,7 +1127,6 @@ QString UBSettings::uniboardInteractiveUserDirectory() |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
hasCreatedDir = false; |
|
|
|
|
|
|
|
qWarning() << "Failed to interpret App/UserInteractiveContentDirectory config : " |
|
|
|
qWarning() << "Failed to interpret App/UserInteractiveContentDirectory config : " |
|
|
|
+ getAppSettings()->value("App/UserInteractiveContentDirectory").toString() |
|
|
|
+ getAppSettings()->value("App/UserInteractiveContentDirectory").toString() |
|
|
|
+ ", defaulting to " + valideUserInteractiveDirectory; |
|
|
|
+ ", defaulting to " + valideUserInteractiveDirectory; |
|
|
@ -1194,8 +1182,6 @@ QString UBSettings::uniboardInteractiveFavoritesDirectory() |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString valideUserInteractiveDirectory = uniboardDataDirectory() + "/interactive favorites"; |
|
|
|
QString valideUserInteractiveDirectory = uniboardDataDirectory() + "/interactive favorites"; |
|
|
|
|
|
|
|
|
|
|
|
bool hasCreatedDir = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// first look into the application settings
|
|
|
|
// first look into the application settings
|
|
|
|
if (sAppSettings && getAppSettings()->contains("App/UserInteractiveFavoritesDirectory")) |
|
|
|
if (sAppSettings && getAppSettings()->contains("App/UserInteractiveFavoritesDirectory")) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1224,7 +1210,6 @@ QString UBSettings::uniboardInteractiveFavoritesDirectory() |
|
|
|
if (!dir.exists()) |
|
|
|
if (!dir.exists()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
dir.mkpath(userWidgetDirectory); |
|
|
|
dir.mkpath(userWidgetDirectory); |
|
|
|
hasCreatedDir = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (dir.exists()) |
|
|
|
if (dir.exists()) |
|
|
@ -1233,7 +1218,6 @@ QString UBSettings::uniboardInteractiveFavoritesDirectory() |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
hasCreatedDir = false; |
|
|
|
|
|
|
|
qWarning() << "Failed to interpret App/UserInteractiveFavoritesDirectory config : " |
|
|
|
qWarning() << "Failed to interpret App/UserInteractiveFavoritesDirectory config : " |
|
|
|
+ getAppSettings()->value("App/UserInteractiveFavoritesDirectory").toString() |
|
|
|
+ getAppSettings()->value("App/UserInteractiveFavoritesDirectory").toString() |
|
|
|
+ ", defaulting to " + valideUserInteractiveDirectory; |
|
|
|
+ ", defaulting to " + valideUserInteractiveDirectory; |
|
|
|