| Summary: | Drag© function (by using Ctrl Key) does not work anymore | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | Ismael Asensio <isma.af> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aacid, christoph, faure, jurajoravec |
| Priority: | NOR | ||
| Version First Reported In: | 5.63.0 | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/ktexteditor/33a47ec6ebb84c9ddda4f4788df8f94c084ae45e | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Ismael Asensio
2019-11-05 17:48:25 UTC
Hello, I tracked it down to the revision D23964 https://phabricator.kde.org/D23964 To be exact error is caused by this one change: https://github.com/KDE/ktexteditor/commit/8f7f22c1fc83a5f18a1701c7c78dae882158de30?diff=unified#diff-fccc06952d6abc88b4b165fc4577eb0fL3240 David some people claim you broke this with https://phabricator.kde.org/D23964 This would fix it for me:
diff --git a/src/view/kateviewinternal.cpp b/src/view/kateviewinternal.cpp
index 51e1efc7..b7922eb2 100644
--- a/src/view/kateviewinternal.cpp
+++ b/src/view/kateviewinternal.cpp
@@ -3232,7 +3232,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);
(In reply to Christoph Cullmann from comment #3) > This would fix it for me: > > diff --git a/src/view/kateviewinternal.cpp b/src/view/kateviewinternal.cpp > index 51e1efc7..b7922eb2 100644 > --- a/src/view/kateviewinternal.cpp > +++ b/src/view/kateviewinternal.cpp > @@ -3232,7 +3232,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); Can confirm, this fixes it for me too. Git commit 33a47ec6ebb84c9ddda4f4788df8f94c084ae45e by Christoph Cullmann. Committed on 26/01/2020 at 13:04. Pushed by cullmann into branch 'master'. fix Drag© function (by using Ctrl Key) M +1 -1 src/view/kateviewinternal.cpp https://commits.kde.org/ktexteditor/33a47ec6ebb84c9ddda4f4788df8f94c084ae45e |