Bug 321132

Summary: kate: right-click closing other document in document list switches away from current document
Product: [Applications] kate Reporter: missive
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.10.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description missive 2013-06-14 00:42:18 UTC
The document list offers a context menu option "Close."  When using the close context menu option to close a document other than the currently displayed document, kate changes the displayed document after closing the other file, instead of leaving the currently displayed document alone.


Reproducible: Always

Steps to Reproduce:
1. Open several files
2. In the file list, right-click close one of the other (not currently active/displayed) documents

Actual Results:  
kate switches to a different document

Expected Results:  
kate does not switch to a different document (continues to show the same document as before closing the other document)
Comment 1 Joseph Wenninger 2013-08-03 14:05:01 UTC
Git commit f8b6fb698376691f88a9bde40640314ae7e42297 by Joseph Wenninger.
Committed on 03/08/2013 at 14:01.
Pushed by jowenn into branch 'master'.

If documents are closed, but they had no top most view, keep the view. Only if the active view vanished, replace it by the first document.

M  +4    -1    kate/app/katedocmanager.cpp

http://commits.kde.org/kate/f8b6fb698376691f88a9bde40640314ae7e42297