Commit cf4ce008 authored by Tomasz Meresiński's avatar Tomasz Meresiński Committed by Nate Graham
Browse files

Setup paste action text before main loop starts

KIO::pasteActionText sometimes hang when called after main loop start.

BUG: 411196

Test Plan:
1. Setup KDE Connect clipboard sync
2. Copy something on the phone
3. Open gwenview. Without the patch it will start about 15 seconds

Reviewers: #gwenview

Subscribers: #gwenview

Tags: #gwenview

Differential Revision:
parent ad0f78a9
......@@ -219,6 +219,7 @@ FileOpsContextManagerItem::FileOpsContextManagerItem(ContextManager* manager, QL
connect(QApplication::clipboard(), &QClipboard::dataChanged,
this, &FileOpsContextManagerItem::updatePasteAction);
// Delay action update because it must happen *after* main window has called
// createGUI(), otherwise calling mXMLGUIClient->plugActionList() will
// fail.
......@@ -259,7 +260,6 @@ void FileOpsContextManagerItem::updateActions()
mXMLGUIClient->plugActionList("file_action_list", list);
void FileOpsContextManagerItem::updatePasteAction()
Markdown is supported
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