Prevented open clipboard twice #4815

This commit is contained in:
Jerry
2015-07-06 13:00:28 -07:00
parent 6e74655e78
commit 23739f8484
2 changed files with 51 additions and 46 deletions

View File

@@ -314,7 +314,10 @@ XWindowsClipboard::add(EFormat format, const String& data)
bool
XWindowsClipboard::open(Time time) const
{
assert(!m_open);
if (m_open) {
return false;
LOG((CLOG_DEBUG "failed to open clipboard: already opened"));
}
LOG((CLOG_DEBUG "open clipboard %d", m_id));