mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
bugfix: check hasFocus() when handling clipboard change
When copying the preview image, other tabs should check if they have the focus. Signed-off-by: Le Tan <tamlokveer@gmail.com>
This commit is contained in:
parent
77d8daa5ec
commit
5a097421e1
@ -516,6 +516,9 @@ void VMdEdit::handleSelectionChanged()
|
||||
|
||||
void VMdEdit::handleClipboardChanged(QClipboard::Mode p_mode)
|
||||
{
|
||||
if (!hasFocus()) {
|
||||
return;
|
||||
}
|
||||
if (p_mode == QClipboard::Clipboard) {
|
||||
QClipboard *clipboard = QApplication::clipboard();
|
||||
const QMimeData *mimeData = clipboard->mimeData();
|
||||
|
Loading…
x
Reference in New Issue
Block a user