appimage: add ktexteditor_fixdragncopy.patch

GIT_SILENT
parent 3e8ed74b
......@@ -28,6 +28,7 @@ if [ -z "$KDEV_PG_QT_VERSION" ]; then
KDEV_PG_QT_VERSION=v2.2.0
fi
# remove kxmlgui_fixdockvisibilitystatestoring.patch for >5.66.0
# remove ktexteditor_fixdragncopy.patch for >5.66.0
KF5_VERSION=v5.66.0
PLASMA_VERSION=v5.17.5
KDE_RELEASESERVICE_VERSION=v19.12.1
......@@ -185,7 +186,7 @@ build_framework threadweaver
build_framework attica
build_framework knewstuff
build_framework syntax-highlighting
build_framework ktexteditor
(PATCH_FILE=$SCRIPT_DIR/ktexteditor_fixdragncopy.patch build_framework ktexteditor)
build_framework kpackage
build_framework kdeclarative
build_framework kcmutils
......
diff --git a/src/view/kateviewinternal.cpp b/src/view/kateviewinternal.cpp
index 69272d01..d628b162 100644
--- a/src/view/kateviewinternal.cpp
+++ b/src/view/kateviewinternal.cpp
@@ -3238,7 +3238,7 @@ void KateViewInternal::doDrag()
QMimeData *mimeData = new QMimeData();
mimeData->setText(view()->selectionText());
m_dragInfo.dragObject->setMimeData(mimeData);
- m_dragInfo.dragObject->exec(Qt::MoveAction);
+ m_dragInfo.dragObject->exec(Qt::MoveAction | Qt::CopyAction);
}
void KateViewInternal::dragEnterEvent(QDragEnterEvent *event)
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