Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit b392dd49 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Allow drag-n-drop menu to work in Wayland

Previously there were crashes in KIO which appear fixed now.
Still not perfect as it appears the Konsole window loses focus.

BUG: 372348
parent 964e6c24
......@@ -56,7 +56,6 @@
#include <KJobWidgets>
#include <KMessageBox>
#include <KIO/StatJob>
#include <KWindowSystem>
// Konsole
#include "Filter.h"
......@@ -3565,8 +3564,7 @@ void TerminalDisplay::dropEvent(QDropEvent* event)
auto urls = mimeData->urls();
QString dropText;
// temporary prevent menu/dnd on Wayland - crash in KIO::drop
if (!urls.isEmpty() && (!KWindowSystem::isPlatformWayland())) {
if (!urls.isEmpty()) {
for (int i = 0 ; i < urls.count() ; i++) {
KIO::StatJob* job = KIO::mostLocalUrl(urls[i], KIO::HideProgressInfo);
bool ok = job->exec();
......
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