diff --git a/src/widgets/dropjob.cpp b/src/widgets/dropjob.cpp --- a/src/widgets/dropjob.cpp +++ b/src/widgets/dropjob.cpp @@ -43,6 +43,7 @@ #include #include #include +#include #include #include @@ -314,6 +315,12 @@ // Qt determined m_dropAction from the modifiers already return KJob::NoError; // ok } + // if the default behavior has been changed to MoveAction + const KConfigGroup g = KConfigGroup(KSharedConfig::openConfig(QStringLiteral("kdeglobals")), QStringLiteral("KDE")); + if (g.readEntry("dndToMove", false)) { + m_dropAction = Qt::MoveAction; + return KJob::NoError; // ok + } // We need to ask the user with a popup menu. Let the caller know. return KIO::ERR_UNKNOWN;