mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Safety measure for r27988.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27990 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9d48ad4f74
commit
d57b6f315d
@ -346,7 +346,7 @@ bool GuiClipboard::hasTextContents() const
|
||||
{
|
||||
QMimeData const * const source =
|
||||
qApp->clipboard()->mimeData(QClipboard::Clipboard);
|
||||
return source->hasText();
|
||||
return source && source->hasText();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user