Commit 00140a2f authored by Kurt Hindenburg's avatar Kurt Hindenburg

temporary prevent dnd menu on Wayland due to crashing

parent 149f6501
......@@ -56,6 +56,7 @@
#include <KJobWidgets>
#include <KMessageBox>
#include <KIO/StatJob>
#include <KWindowSystem>
// Konsole
#include "Filter.h"
......@@ -3320,7 +3321,8 @@ void TerminalDisplay::dropEvent(QDropEvent* event)
auto urls = mimeData->urls();
QString dropText;
if (!urls.isEmpty()) {
// temporary prevent menu/dnd on Wayland - crash in KIO::drop
if (!urls.isEmpty() && (!KWindowSystem::isPlatformWayland())) {
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