git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25951 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-07-29 02:04:52 +00:00
parent 609878cf00
commit 3f21a3de56

View File

@ -101,9 +101,11 @@ bool GuiSelection::empty()
if (!selection_supported_)
return true;
if (schedule_check_)
if (schedule_check_) {
text_selection_empty_ = qApp->clipboard()->
text(QClipboard::Selection).isEmpty();
schedule_check_ = false;
}
LYXERR(Debug::SELECTION, "GuiSelection::filled: " << !text_selection_empty_);
return text_selection_empty_;