Bug 382467

Summary: "Save" button works on a wrong file
Product: [Applications] kate Reporter: Victor Porton <porton>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 16.08   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Victor Porton 2017-07-18 14:19:06 UTC
Open several files and show Documents sidebar.

Select one of the files in the sidebar by left click. Then right click another file in the sidebar. Close the context menu by clicking outside the sidebar.

Now the file you right clicked is on blue background in the sidebar. But if you click Save button, the file which you previously clicked with left button will be saved instead of the file with blue background.

It is very confusing (and sometimes may even lead to data loss) that a file different of that one with blue background is saved.

Please ensure that Save button (and other operations) always (when the Documents sidebar tab is visible) work on the file which is on blue background in the sidebar, not on some other file.

Version 16.08.3
Comment 1 Christoph Cullmann 2017-07-25 10:47:31 UTC
Git commit f611baa1944c07258407fdc7a8e015d2ef866014 by Christoph Cullmann.
Committed on 25/07/2017 at 10:45.
Pushed by cullmann into branch 'master'.

ensure that the highlighted document is the active one to avoid
confusions

M  +1    -0    addons/filetree/katefiletree.cpp

https://commits.kde.org/kate/f611baa1944c07258407fdc7a8e015d2ef866014