From e256daa5693ba271a62959372f3e89cc93da9487 Mon Sep 17 00:00:00 2001 From: Arjun AK Date: Sat, 1 Nov 2014 16:41:29 +0530 Subject: 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 --- src/dolphinviewcontainer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dolphinviewcontainer.cpp') 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) -- cgit v1.3