Bug 366766 - Dragging and dropping the same file multiple times creates duplicate entries.
Summary: Dragging and dropping the same file multiple times creates duplicate entries.
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 16.08
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: regression, usability
Depends on:
Blocks:
 
Reported: 2016-08-14 21:19 UTC by xaxazak
Modified: 2016-11-05 22:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xaxazak 2016-08-14 21:19:34 UTC
Every time I drag and drop a file it creates a new entry, even if it already exists.
I'm using tree-view.

When one entry is edited, the others are considered dirty and need reloading.

This could potentially cause data loss as if you don't notice you've opened the same file twice then go to save everything you could lose all your updates if the unmodified version is saved last.

Reproducible: Always

Steps to Reproduce:
1. Select any text file in a file browser (I used dolphin).
2. Open Kate (I have documents panel set to tree-view, not sure if it matters).
3. Drag text file onto Kate multiple times.

Actual Results:  
Multiple independently-editable entries shown in documents panel.

Expected Results:  
Dropping an already open file into Kate should be ignored.

System: Linux Mint XFCE 18
KDE apps installed from default Ubuntu 16.04 repository.

NOTE: This is a regression from a previous Kate version (Ubuntu 14.04's version worked).
Comment 1 xaxazak 2016-08-30 09:35:54 UTC
Firstly I want to note that even though I submitted this bug at a similar time, this bug is different to https://bugs.kde.org/show_bug.cgi?id=366568 (which is about dropping folders).

I just lost 20 minutes work due to this even though I was aware of the bug, so I'm not sure if I should raise the priority/importance on this. "Critical: The software causes you to lose data." technically applies, but it seems a bit extreme - and that would also apply to 366568 (above).

I'll leave it to someone with more experience to decide whether the priority needs an increase.
Comment 2 xaxazak 2016-11-05 22:48:08 UTC
This seems resolved as of 2016-11-06 in Kate 16.08.2, master branch.
I'll close it.