aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/QuickMedia.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 1f468d9..252bb19 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -1241,6 +1241,10 @@ namespace QuickMedia {
no_video = true;
} else if(strcmp(plugin_name, "matrix") == 0) {
assert(!matrix);
+ if(create_directory_recursive(get_cache_dir().join("matrix").join("events")) != 0) {
+ show_notification("QuickMedia", "Failed to create events cache directory", Urgency::CRITICAL);
+ abort();
+ }
matrix = new Matrix();
} else {
assert(false);