parent
da455c486a
commit
f25d9eb10e
1 changed files with 3 additions and 6 deletions
|
@ -928,13 +928,10 @@ bool ChildSession::getClipboard(const char* /*buffer*/, int /*length*/, const st
|
|||
char **pOutStreams = nullptr;
|
||||
|
||||
bool success = false;
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(_docManager.getDocumentMutex());
|
||||
getLOKitDocument()->setView(_viewId);
|
||||
getLOKitDocument()->setView(_viewId);
|
||||
|
||||
success = getLOKitDocument()->getSelection(pMimeTypes, &nOutCount, &pOutMimeTypes,
|
||||
&pOutSizes, &pOutStreams);
|
||||
}
|
||||
success = getLOKitDocument()->getSelection(pMimeTypes, &nOutCount, &pOutMimeTypes,
|
||||
&pOutSizes, &pOutStreams);
|
||||
|
||||
if (!success || nOutCount == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue