We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6545b62 commit bc5d8e6Copy full SHA for bc5d8e6
src/app/clipboardmonitor.cpp
@@ -22,6 +22,17 @@ namespace {
22
23
bool hasSameData(const QVariantMap &data, const QVariantMap &lastData)
24
{
25
+ // Detect change also in case the data is unchanged but previously copied
26
+ // by CopyQ and now externally. This solves storing a copied text which was
27
+ // previously synchronized from selection to clipboard via CopyQ.
28
+ if (
29
+ !lastData.value(mimeOwner).toByteArray().isEmpty()
30
+ && data.value(mimeOwner).toByteArray().isEmpty()
31
+ )
32
+ {
33
+ return false;
34
+ }
35
+
36
for (auto it = lastData.constBegin(); it != lastData.constEnd(); ++it) {
37
const auto &format = it.key();
38
if ( !format.startsWith(COPYQ_MIME_PREFIX)
0 commit comments