summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2017-06-17 16:15:25 -0400
committerKurt Hindenburg <[email protected]>2017-06-17 16:15:25 -0400
commit00140a2fa5795f4a721b628896dd817ec23f8c2b (patch)
tree88224caf9d873ad0719a50f3078dc7796c309947
parent149f6501cf285207d741d25a033cba7a64ec9364 (diff)
temporary prevent dnd menu on Wayland due to crashing
-rw-r--r--src/TerminalDisplay.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp
index 7d6ce26..7b083a6 100644
--- a/src/TerminalDisplay.cpp
+++ b/src/TerminalDisplay.cpp
@@ -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();