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:
Pavel Sanda 2008-07-20 20:16:33 +00:00
parent bd8f4da87b
commit 7565a5934f
2 changed files with 3 additions and 0 deletions

View File

@ -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();

View File

@ -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();
}