diff options
| author | Harald Sitter <[email protected]> | 2026-02-10 13:00:28 +0100 |
|---|---|---|
| committer | Harald Sitter <[email protected]> | 2026-03-02 15:33:56 +0100 |
| commit | 44a1202682277a112588ab2c4b77ce8c31962590 (patch) | |
| tree | 4153d96fc0462dce91421c7c79b9c0022784740a /src/dolphinviewcontainer.h | |
| parent | 4a4da5f73899cdd2a1ef111194e79a620eed7716 (diff) | |
dolphinviewcontainer: let the user open a file that was a directory
when trying to open a file as directory we run into a IsFile error and
instead open the parent directory. this is a bit inconvenient when the
user actually wants to open a file. allow them to redirect the request
to the correct API instead. this ensures backwards compatible behavior
but introduces new strings that require localization.
ultimately being able to open files this way is a bit of any-feature
though.
CCBUG: 516830
Diffstat (limited to 'src/dolphinviewcontainer.h')
| -rw-r--r-- | src/dolphinviewcontainer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index 09413ba55..8ff1c59e0 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -497,6 +497,8 @@ private: QAction *m_authorizeToEnterFolderAction; /// An action to create new folder in case user enters a nonexistent URL in the location bar. QAction *m_createFolderAction; + /// An action to open the url as file instead of as directory. Lazily initialized. + QAction *m_openAsFile = nullptr; KMessageWidget *m_messageWidget; |
