┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2026-01-22clang-tidy: fix modernize-loop-convertMéven Car
2026-01-22clang-tidy: fix performance-avoid-endlMéven Car
2026-01-22clang-tidy: fix unecessary-value-paramMéven Car
2026-01-22clang-tidy: avoid copy, use const referencesMéven Car
2026-01-22clang-tidy: remove unnecessary std::moveMéven Car
2026-01-22clang-tidy: use default for trivial constructorMéven Car
2026-01-21Add keyboard anchor assignments to mouse eventsTomasz Kot
The mouse events need to modify the keyboard anchor assignments as well, because selecting an item with a mouse and then navigating with keyboard wouldn't follow the same selection. BUG: 508609
2026-01-20dolphinview: when creating a subfolder expand to it if in details modeMéven Car
So the new folder is in view.
2026-01-20dolphinfontrequester: Do not apply custom view font to font mode comboboxPan Zhang
When a user selects a custom font via the font dialog, the font mode combobox (showing System Font / Custom Font) was updated to use the selected font. This caused an unintended visual inconsistency, as configuration UI elements should always be rendered using the system application font, independent of the font chosen for the content view. Fix this by removing the setFont() call in openFontDialog(), ensuring the combobox remains visually consistent with the rest of the configuration interface. BUG: 499783
2026-01-17Add options to always show tab bar and hide close buttonsxi ota
This MR adds options to keep tab bar always visible and to remove the close button from tabs. MR !269 cannot be reopened because the branch it is based on is no longer accessible. Per @meven direction, I am opening this new MR. Note: Defaults to current defaults. ![dolphin-config](/uploads/342914c6067f69dfe7146a3c938e2083/dolphin-config.png){width=734 height=597} ![dolphin-main](/uploads/2da396c36ca5074829123511f54968cc/dolphin-main.png){width=762 height=580} Criticisms of previous MR: * Options should take effect immediately when users apply new settings, rather than requiring restart. * Done. * Concern about potential maintenance burden. * I've been maintaining some version of this patch for ~4-5 years, available via [aur/dolphin-tabopts](https://aur.archlinux.org/packages/dolphin-tabopts) and Chaotic AUR. During that time, only two major rebases were needed. First was what appeared to be automated linting and reformatting. Second was when the preferences system was reorganized. Had the patch been integrated in the code base prior to those refactors, the first would have required zero maintainer intervention (assuming automated reformatting). The second would have required minimal effort beyond what was needed for the refactor itself. Every defect I've noticed during that time were also present in the unpatched package. * There is no demand or desire for this feature. * Equivalent settings are available in various apps across operating systems and desktop environments, including several KDE apps, such as akregator, kate, konsole (confirmed in 25.12.1). * The first merge request in this repo !1 was to implement always showing the tab bar. * Some users have found, created an account, and commented at the previous MR to ask that it be reconsidered. * Arch opt-in pkgstats shows non-zero count for aur/dolphin-tabopts since early 2023. Max 15 in early 2025. Current 5. * Chaotic AUR download metrics is 41 (rolling 30-day count). * Unproductive "discussion" not worth further comment.
2026-01-17SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-01-16SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2026-01-14On Middle-click, allow to open scripts with the second appMéven Car
When holding shift when middle-clicking. Amends: a25f2cc67cbab7f001c883931a433f1841223a87 CCBUG: 496687
2026-01-12viewproperties: remove temp file after loading defaultConfigSergey Katunin
It turns out that since f6c97d52220be9bd996b71309051e56ff7aa1834 a temp file is created here with each `save()` call for this default config, which is not deleted later. In another place where `defaultProperties()` is called for `m_node`, the file is deleted in the destructor of this class. But it is not deleted here. So, remove temp file after loading defaultConfig or it will create temp file on each save() operation in /tmp folder. Also keep the global/.directory file when xattr isn't supported. BUG: 510500
2026-01-10Use Q_ASSERT instead of Q_CHECK_PTR for plain checks of pointer valueFriedrich W. H. Kossebau
Q_CHECK_PTR (other than the name suggests) is intended only to check the success of memory allocations. Using it for any pointers instead can be misleading due to the "Out of memory" log printed in case of hits.
2026-01-09DolphinView: Avoid using dynamic view if any items in the view are expandedAkseli Lahtinen
Previously in cases where user was expanding a folder that has only images in detailed view, it would suddenly change into dynamic view. This patch avoids doing any changes to the user workflow if they have expanded the folder, avoiding surprising behavior.
2026-01-09dolphinmainwindow: Reload context menu plugins when configuration changesPan Zhang
Reload the context menu plugins and share the KFileItemActions with the context menu so it stays up-to-date as the user changes the service menu settings. This uses a KConfigWatcher to trigger settings reload on "kservicemenurc" changes, covering both internal settings changes and external scripts. Remove the obsolete restart prompt in ContextMenuSettingsPage since changes are now applied instantly. BUG: 508722
2026-01-08Install middle click event handler on KXmlGui Toolbar menuKai Uwe Broulik
For ease of access, KXmlGui adds actions in a delayed/split toolbar button to its own context menu. We have no access to this menu, so we cannot install our middle-click event handler for the back/forward action menus. To address this, we detect the action showing for the first time and install an event filter on the associated object if we think it's the menu.
2026-01-08Dolphin: Inform user when italic filename style is not supported by the fontSushruta Das
Currently, Dolphin silently falls back to a non-italic variant because italics are reserved for symbolic links. The new message informs users that their selected style cannot be fully applied to avoid confusion. BUG: 499784
2026-01-07KFileItemModelRolesUpdater: Don't resolve mime type manuallyKai Uwe Broulik
It's no longer true that KIO preview would block. It spawns an asynchronous stat job if it needs to determine the mime type.
2026-01-07viewmodes: ensure font dialog retains last custom selectionweinan li
The font selection dialog for custom view fonts was always initialized with the system default font instead of the previously selected custom font. This occurred because QFontDialog::getFont() was not passed the current custom font stored in DolphinFontRequester. By initializing the dialog with currentFont() (which returns the stored custom font when in Custom Font mode), users will now see their previous font selection when reopening the dialog, enabling easier font finetuning. BUG: 499786
2026-01-07viewactionhandler: remove duplicate Sort by: textOliver Schramm
222c8eb5 has accidentally reverted 4deeb7bc. This re-applies this.
2026-01-04dolphinview: fix missing selection on next item after Delete key removalPan Zhang
When a file is deleted using the Delete key, the next item gains focus but loses its selection, which breaks further keyboard deletion. This patch ensures the next item is explicitly selected after clearing the previous selection. BUG: 513371
2026-01-03GIT_SILENT Update Appstream for new releaseHeiko Becker
(cherry picked from commit 31fa6509c29f730a8a1d4fe1c8dbf50a1f1fcf9c)
2025-12-27GIT_SILENT made messages (after extraction)l10n daemon script
2025-12-26dolphinview: do not get view properties if we do not apply dynamic viewSergey Katunin
If we have return early because dynamic view is not enabled or we have Icon View already, then do not try to load view properties to get 'dynamicViewPassed' property. Otherwise, for example, it infinitely calls the ViewProperties::save() method for the /tmp folder, which generates a bunch of temporary files (on new user, if dynamic view is not enabled and Icon View applied by default) BUG: 508402
2025-12-24DolphinView: observeCreatedDirectory take into account last / of m_urlMéven Car
BUG: 513345
2025-12-23dolphintabbpage: Allow migration for users with the old session file formatOliver Schramm
Commit 8d44699f introduced a new session file format, without providing a migration path for the old file format, which led to users losing their session. Besides adding the migration path, the condition check for future updates is necessary, since we don't provide guarantees for backwards-compatible format changes. In case users downgrade their Dolphin version/immutable distro or they share the Dolphin config file across multiple systems, Dolphin at least won't crash when reading a session file with a newer format. BUG: 513466
2025-12-14SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2025-12-13SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2025-12-13GIT_SILENT made messages (after extraction)l10n daemon script
2025-12-12Clarify split view startup option labelPhilipp Kiemle
Using plural here better conveys that every new window will have split view mode enabeled. The original string was introduced in !1103 CCBUG:464696 CCBUG:186185
2025-12-12SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2025-12-08kfileitemmodel: Fix folder/file icon rating displayPan Zhang
Fix the issue where enabling icon rating always showed five white stars. Retrieve the correct rating from KFileMetaData::UserMetaData for local files and insert it into the item data. This ensures both files and folders display the updated rating correctly. BUG: 512940
2025-12-03GIT_SILENT Update Appstream for new releaseHeiko Becker
(cherry picked from commit 74285708c697b7a05f22da3ce4d1032d6dfa539c)
2025-12-03kconfig: add update script for split view closing optionsRafał Lichwała
2025-12-03folderstabssettingspage: add 3 options for closing split viewRafał Lichwała
There is one bool setting in Dolphin Interface->Folders&Tabs->Split_view which determines which panel is closed on "Close split view" button click (currently focused or unfocused one). This commit replaces this setting with (enum-based) 3-state combo box. Since now we can set "When closing a split view" action to: - Close the active pane - Close the inactive pane - Close the right pane BUG: 464696 BUG: 186185
2025-11-28DolphinTabWidget: fix wrong variable in tabInserted tooltip loopWang Yu
Use loop index 'i' instead of function parameter 'index' for setTabToolTip. Previously all tooltips would be set on the newly inserted tab instead of their respective tabs.
2025-11-27kitemviews: Prevent crash when dragging details side padding headerCarlos Aurelio
Calling createRolePixmap() while roleIndex is < 0 (which is the case for the header side padding) would cause access to a negative index of a vector, so exit the function before so and do nothing. BUG: 511057
2025-11-27dolphinnavigatorswidgetaction: show focus indicator in split modeRafał Lichwała
This commit uses KUrlNavigator focus indicator to show sufficiently which panel (left or right) is currently active in split mode. This MR is based on KIO changes in https://invent.kde.org/frameworks/kio/-/merge_requests/2054 See discussion in MR: !1076 (comment 1334290), see https://invent.kde.org/frameworks/kio/-/merge_requests/2058 @teams/vdg ![Screenshot_20251117_232634.png](/uploads/2999f35fdc1c6dd359621c60d23460f2/Screenshot_20251117_232634.png){width=849 height=313} ![Screenshot_20251117_232704.png](/uploads/bd7b75f9159ab533b8e446781233e027/Screenshot_20251117_232704.png){width=849 height=313} ![Screenshot_20251117_232740.png](/uploads/e07153c1e9ae162ebc0ff3f09df1ac34/Screenshot_20251117_232740.png){width=849 height=313} ![Screenshot_20251117_232752.png](/uploads/ececd4c70c0e1f67145e2486d1cf21f2/Screenshot_20251117_232752.png){width=849 height=313} @teams/vdg BUG: 150718 BUG: 428440
2025-11-22DolphinView: when creating a dir hierarchy only select dir in current pathMéven Car
If you are in ~ And create at once ~/1/2 Select the 1 folder afterwards
2025-11-21context menu: use selected item as containing folder for New file menuMéven Car
Use current view url as fallback. Don't update the selection after a directory is created, except if there was no selection. CCBUG: 508196 BUG: 512020
2025-11-21DolphinView: open the property dialog on Alt+activatedMéven Car
Similarly to Microsoft explorer. FEATURE: 512383
2025-11-21kstandarditemlistwidget: Fix vertical misalignment for file names containing ↵Pan Zhang
certain glyphs In the Details view the name (text) column could appear vertically off-center for file names containing certain Unicode glyphs (for example "』"). The issue is caused by a mismatch between the generic font metrics ascent and the actual ascent of the rendered QTextLine for that glyph, which shifts the baseline and thus the visual vertical centering. This change computes the QTextLine ascent for the (single) layouted line and adjusts the vertical position by the difference between the font metrics ascent and the line ascent. The adjustment is applied only for the name (text) role so other columns are unaffected. BUG: 512152
2025-11-20informationpanel: prevent a crash when creating video preview panel and a ↵Jean-Baptiste Mardelle
media file is selected To reproduce the crash: - Open Dolphin, disable information panel and close Dolphin - Re-open Dolphin - Select a video file - Enable information panel - Crash Problem is that some elements of the MediaWidget panel are created when the widget is shown, in `showEvent` (`m_seekSlider` and `m_topLayout`), and these elements are called before being created. This MR fixes 2 different crashes: - Crash creating panel when a video file is selected (call to `m_seekSlider` before its creation) - Crash creating panel when a video file is selected and autoplay enabled (call to `m_topLayout` before its creation)
2025-11-18dolphinviewactionhandler: Add context to translatable stringPhilipp Kiemle
"Sort By field" could be understood as an extra field that contains a "Sort By" value
2025-11-16dolphincontextmenu: Add hint that shift+middle-click opens the third appTomasz Kot
Checks if the second action in the submenu is actually an app and not a separator, and add hint "Shift + Middle Click".
2025-11-16main: set active view in split mode when not restoring sessionRafał Lichwała
When Dolphin config was set to start in split mode by default AND simply open the given folder in both panels (Settings -> Folders&Tabs -> Show on startup -> selected folder [NOT "...state from last time"]) no view was initially active making weird side-effects described in both bugs. This commit solves that by calling mainWindow->openDirectories on start when both of the above conditions are met. BUG: 503576 BUG: 508554
2025-11-15SVN_SILENT made messages (.desktop file) - always resolve oursl10n daemon script
In case of conflict in i18n, keep the version of the branch "ours" To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2025-11-12Revert "Avoid implicitly selecting items"Nate Graham
This reverts commit 122fee5625f0285ec4ebda79162c72390989eb2a. This behavior change was well-intentioned, but has significant usability and speed drawbacks that have not been addressed: - Keyboard-driven folder manipulation became slower - Unexpected behavioral differences when opening files with the pointer compared to when opening them with the keyboard introduced inconsistency and cognitive load - Unexpected opening of selection mode during fast operation introduced the potential for confusion and additional errors - Dolphin's behavior became inconsistent with that of other file managers users may be accustomed to The bug tracker, discuss.kde.org, and Reddit are full of complaints about this change. It's been a year now; I think it's clear that many Dolphin users have not gotten used to and accepted it. I have to count myself as one of them, I'm afraid. I've tried to get used to it for a year, but I just have not been able to. I don't believe the benefits of this change outweigh the drawbacks, so let's revert it. 24d859cf19e90fa22ed687b36a68231625c1bd80 was explicitly mentioned as a thing that should also be reverted in this case, but it's already been done. BUG: 494125 BUG: 511966 CCBUG: 424723 CCBUG: 492404 FIXED-IN: 25.12.0