From 1c150eeb1d530e19976c945e69410c0cf26a3cb0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 10 Sep 2022 03:51:01 +0200 Subject: Fix clipboard images for gnome screenshot --- depends/mglpp | 2 +- src/QuickMedia.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/depends/mglpp b/depends/mglpp index 7c83c70..6fdf459 160000 --- a/depends/mglpp +++ b/depends/mglpp @@ -1 +1 @@ -Subproject commit 7c83c7093beaa8ac4409f5d3ac3819d252227448 +Subproject commit 6fdf4592dac2f6cf37e4cc8794a78bf0372208b6 diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 1a67509..97eb939 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -6792,7 +6792,7 @@ namespace QuickMedia { if(tmp_file != -1) clipboard_text = tmp_filename; - if(clipboard_success) + if(clipboard_success && !clipboard_text.empty() && get_file_type(clipboard_text) == FileType::REGULAR) upload_file(clipboard_text); if(tmp_file != -1) { -- cgit v1.2.3