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

            Bug ID: 360203
           Summary: 'open!' command opens already-open file.
           Product: kdevelop
           Version: 4.90.91
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]

When using the GUI file selector, attempting to open an already-opened file
switches to that tab and doesn't create a new one.

The 'open!' command from kdevplatform_shell_environment instead opens the file
in a new tab, causing multiple instances of the same file to be displayed.

This leads to another glitch; indicators (unsaved-changes etc.) for a file are
only shown in one of its tabs. If that tab is closed, indicators are not shown
for the file at all; the remaining tabs only ever contain the filename.

I thought I also saw this happen using the GUI file dialog, but I've not been
able to reproduce that. Probably I was mistaken.

Reproducible: Always

Steps to Reproduce:
1. Open a file in KDevelop
2. Open the same file from konsolepart by 'open! path/to/file.ext'.
---
3. Make changes to that file without saving
4. Close the tab containing the unsaved-changes indicator

Actual Results:  
1-2:  File is reopened in a new tab, resulting in two tabs for the same file.
---
3:  Unsaved-changes indicator appears in only one tab.
4: No unsaved-changes indicator visible despite unsaved changes.

Expected Results:  
1-2: Tab containing file is focused. No new tab created.
---
3-4: Indicators visible in all tabs for a file (or just shouldn't happen).

Using KDevelop 4.90.91, Frameworks 5.19.0, Qt 5.6-rc1; all on Arch Linux.

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

Reply via email to