From c3b9541e1c320199bd8223749855b8fae33f6b35 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 5 Mar 2024 18:12:07 +0100 Subject: Matrix: ctrl+v only copy file if clipboard text contains absolute filepath --- src/QuickMedia.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 84f921f..ddc50d5 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -7246,7 +7246,7 @@ namespace QuickMedia { if(tmp_file != -1) clipboard_text = tmp_filename; - if(clipboard_success && !clipboard_text.empty() && get_file_type(clipboard_text) == FileType::REGULAR) { + if(clipboard_success && !clipboard_text.empty() && get_file_type(clipboard_text) == FileType::REGULAR && clipboard_text[0] == '/') { const time_t now = time(nullptr); struct tm t; localtime_r(&now, &t); -- cgit v1.2.3