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");