Commit 86102676 authored by Luke Dashjr's avatar Luke Dashjr Committed by Albert Astals Cid
Browse files

Bugfix: VNC: Restore m_dontSendClipboard to prior state after setting remote contents locally

parent 8111867c
......@@ -534,9 +534,10 @@ void VncView::enableScaling(bool scale)
void VncView::setCut(const QString &text)
{
const bool saved_dontSendClipboard = m_dontSendClipboard;
m_dontSendClipboard = true;
m_clipboard->setText(text, QClipboard::Clipboard);
m_dontSendClipboard = false;
m_dontSendClipboard = saved_dontSendClipboard;
}
void VncView::paintEvent(QPaintEvent *event)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment