summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/blackberry/qbbclipboard.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/platforms/blackberry/qbbclipboard.cpp b/src/plugins/platforms/blackberry/qbbclipboard.cpp
index e26b299..dbcee5a 100644
--- a/src/plugins/platforms/blackberry/qbbclipboard.cpp
+++ b/src/plugins/platforms/blackberry/qbbclipboard.cpp
@@ -190,7 +190,10 @@ void QBBClipboard::setMimeData(QMimeData *data, QClipboard::Mode mode)
if (mode != QClipboard::Clipboard)
return;
- if (data == m_mimeData || data == m_mimeData->userMimeData())
+ if (m_mimeData == data)
+ return;
+
+ if (m_mimeData->userMimeData() && m_mimeData->userMimeData() == data)
return;
empty_clipboard();
@@ -220,7 +223,6 @@ void QBBClipboard::setMimeData(QMimeData *data, QClipboard::Mode mode)
m_mimeData->addFormatToCheck(format);
}
- emitChanged(QClipboard::Clipboard);
}
QMimeData* QBBClipboard::mimeData(QClipboard::Mode mode)