┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinviewcontainer.cpp
diff options
context:
space:
mode:
authorArjun AK <[email protected]>2014-11-01 16:41:29 +0530
committerArjun AK <[email protected]>2014-11-01 16:41:29 +0530
commite256daa5693ba271a62959372f3e89cc93da9487 (patch)
tree37429954c0c4e052355afeea0cac3e7d00671bb4 /src/dolphinviewcontainer.cpp
parent422dc4e921c83265453b6e3ea1d911c051bf8270 (diff)
Enable KRun's script execution prompt.
This commit enables KRun's script/desktop file execution prompts, which is shown when the user launches an executable script or a desktop file. This is done so as to prevent the user from accidentaly executing programs. A checkbox to enable or disable the prompts is also being added to the preferences window REVIEW: 120171 BUG: 275405
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
-rw-r--r--src/dolphinviewcontainer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp
index aecf7ae2f..a9b03796b 100644
--- a/src/dolphinviewcontainer.cpp
+++ b/src/dolphinviewcontainer.cpp
@@ -504,7 +504,8 @@ void DolphinViewContainer::slotItemActivated(const KFileItem& item)
return;
}
- new KRun(item.targetUrl(), this);
+ KRun *run = new KRun(item.targetUrl(), this);
+ run->setShowScriptExecutionPrompt(true);
}
void DolphinViewContainer::slotItemsActivated(const KFileItemList& items)