diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-03-05 18:12:07 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-03-05 18:12:07 +0100 |
commit | c3b9541e1c320199bd8223749855b8fae33f6b35 (patch) | |
tree | 69b5cb6485e28ca2420b3f3d933636a175f79846 /src | |
parent | e477c0c2c5a10d72fbb0e1f154db2359e6dbaaff (diff) |
Matrix: ctrl+v only copy file if clipboard text contains absolute filepath
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |