diff options
| author | Ahmad Samir <[email protected]> | 2020-12-15 00:40:12 +0200 |
|---|---|---|
| committer | Ahmad Samir <[email protected]> | 2020-12-16 23:51:06 +0200 |
| commit | c03b43b4a1132ca7bc6db4a1583bc8bd1578b44f (patch) | |
| tree | 25392d23ef7944fd2e0ac0b898db2b227c4781d2 /src/dolphinviewcontainer.cpp | |
| parent | c95d7fae79a309ed7f2df393fa20257cb20d54a8 (diff) | |
Use setShowOpenOrExecuteDialog(true) with OpenUrlJob
It makes more sense for a file manager to always ask the user:
- whether to execute binaries
- whether to open an executable script as text or execute it
The openOrExecute dialog from KIOWidgets has a "don't ask again" checkbox,
and that setting is also accessible from Dolphin's settings dialog.
See the discussion at https://bugs.kde.org/show_bug.cgi?id=429839#c10
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 8dd309314..7053c4a6b 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -638,7 +638,6 @@ void DolphinViewContainer::slotItemActivated(const KFileItem& item) } KIO::OpenUrlJob *job = new KIO::OpenUrlJob(item.targetUrl()); - job->setRunExecutables(true); job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this)); job->setShowOpenOrExecuteDialog(true); job->start(); |
