mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
Another debugs for selection engine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25737 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bd8f4da87b
commit
7565a5934f
@ -1483,6 +1483,7 @@ docstring const BufferView::requestSelection()
|
||||
{
|
||||
Cursor & cur = d->cursor_;
|
||||
|
||||
LYXERR(Debug::SELECTION, "requestSelection: cur.selection: " << cur.selection());
|
||||
if (!cur.selection()) {
|
||||
d->xsel_cache_.set = false;
|
||||
return docstring();
|
||||
|
@ -55,6 +55,7 @@ void GuiSelection::haveSelection(bool own)
|
||||
// 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)
|
||||
qApp->clipboard()->setText(QString(), QClipboard::Selection);
|
||||
// We don't need to do anything if own = false, as this case is
|
||||
@ -90,6 +91,7 @@ void GuiSelection::put(docstring const & str)
|
||||
|
||||
void GuiSelection::on_dataChanged()
|
||||
{
|
||||
LYXERR(Debug::SELECTION, "GuiSelection::on_dataChanged::empty: " << text_selection_empty_);
|
||||
text_selection_empty_ = qApp->clipboard()->
|
||||
text(QClipboard::Selection).isEmpty();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user