https://bugs.kde.org/show_bug.cgi?id=516928

Finley Watson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/sdk/
                   |                            |lokalize/-/commit/6c8c70a9c
                   |                            |b8388e94f1e1d8e8c79c6a5a62b
                   |                            |65d9
         Resolution|---                         |FIXED

--- Comment #4 from Finley Watson <[email protected]> ---
Git commit 6c8c70a9cb8388e94f1e1d8e8c79c6a5a62b65d9 by Finley Watson, on behalf
of Aviral Singh.
Committed on 18/03/2026 at 02:44.
Pushed by finw into branch 'master'.

fix: editor tab labels display file name and dir rather than complete file path

This merge request fixes the issue where tab titles would incorrectly display
the full file path instead of the filename when saving without an active
project. It also updates the tab disambiguation format to comply with the KDE
Human Interface Guidelines (HIG).

Changes:

- Modified EditorTab::updateCaptionPath() to correctly utilize
  QFileInfo::fileName() when no project is loaded, ensuring the tab title
  remains concise after a save operation.
- HIG Compliance: Updated the filename disambiguation logic to follow the
  "Document Name — Context" pattern as per
  https://develop.kde.org/hig/text_and_labels/#window-titles . Tabs with
  identical filenames now display as **filename.po — path/to/dir** instead of
  **path/to/dir/filename.po**.

![Screenshot 2026-03-09 at 11.42.17
PM.png](/uploads/e237eaca599829017f5a912fe00e0b02/Screenshot_2026-03-09_at_11.42.17_PM.png){width=676
height=600}

M  +29   -14   src/editortab.cpp
M  +2    -4    src/editortab.h
M  +2    -2    src/lokalizemainwindow.cpp

https://invent.kde.org/sdk/lokalize/-/commit/6c8c70a9cb8388e94f1e1d8e8c79c6a5a62b65d9

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to