// an application actually requests it.
// This way calling Selection::have() is cheap and we can do it as
// often as we want.
- //LYXERR(Debug::SELECTION, "GuiSelection: setting dummy selection");
- if (own)
+ if (own && !qApp->clipboard()->ownsSelection()) {
+ LYXERR(Debug::SELECTION, "GuiSelection: setting dummy selection");
qApp->clipboard()->setText(QString(), QClipboard::Selection);
+ }
// We don't need to do anything if own = false, as this case is
// handled by QT.
// FIXME (gb): This is wrong. What is missing here is rather a call of