From fff5888152f1e7126b7bdfd7bc9124f544ff5816 Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Wed, 28 Feb 2018 14:46:53 +0100 Subject: [PATCH] Fix full -c block --- src/core/flameshotdbusadapter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/flameshotdbusadapter.cpp b/src/core/flameshotdbusadapter.cpp index 6682eef8..24a1512a 100644 --- a/src/core/flameshotdbusadapter.cpp +++ b/src/core/flameshotdbusadapter.cpp @@ -75,12 +75,13 @@ void FlameshotDBusAdapter::fullScreen( Q_EMIT captureFailed(id); return; } - if(toClipboard) { - ResourceExporter().captureToClipboard(p); - } + // This needs to be done first in order to prevent a severe block if(!path.isEmpty()) { ResourceExporter().captureToFile(p, path); } + if(toClipboard) { + ResourceExporter().captureToClipboard(p); + } QByteArray byteArray; QBuffer buffer(&byteArray); p.save(&buffer, "PNG");