┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 300d99d92..eae9ca31a 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -160,7 +160,7 @@ void DolphinMainWindow::dropUrls(const KUrl::List& urls,
i18n("&Link Here") + "\t" + seq);
popup.addSeparator();
- popup.addAction(KIcon("stop"), i18n("Cancel"));
+ QAction* cancelAction = popup.addAction(KIcon("stop"), i18n("Cancel"));
QAction* activatedAction = popup.exec(QCursor::pos());
if (activatedAction == moveAction) {
@@ -172,6 +172,9 @@ void DolphinMainWindow::dropUrls(const KUrl::List& urls,
else if (activatedAction == linkAction) {
action = Qt::LinkAction;
}
+ else if (activatedAction == cancelAction) {
+ return;
+ }
}
switch (action) {