From 7565a5934f121736a690916bb28e4af61f799087 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sun, 20 Jul 2008 20:16:33 +0000 Subject: [PATCH] Another debugs for selection engine. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25737 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 1 + src/frontends/qt4/GuiSelection.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index a98fcfe095..b46be350b8 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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(); diff --git a/src/frontends/qt4/GuiSelection.cpp b/src/frontends/qt4/GuiSelection.cpp index 7f5d4368c2..30738cf30e 100644 --- a/src/frontends/qt4/GuiSelection.cpp +++ b/src/frontends/qt4/GuiSelection.cpp @@ -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(); } -- 2.39.5