Bug 349561 - opening a new tab using the document structure view leaves cursor in old document
Summary: opening a new tab using the document structure view leaves cursor in old docu...
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: editor (other bugs)
Version First Reported In: 2.1.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-24 09:54 UTC by Robert Riemann
Modified: 2016-12-27 20:42 UTC (History)
0 users

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 Robert Riemann 2015-06-24 09:54:34 UTC
When I double-click in the stucture view (left part of the window) on a node representing a file include in latex (\include{file}), the tab of the included file is brought to view. However, when I start writing, I'm editing actually the document in the tab that have been open before.

Reproducible: Always

Steps to Reproduce:
1. create a tex master-document that contains one \include{whatever.tex}
2. double-click on the include. If the file does not exist, a dialog opens and asks to create the file. Create it! However, if the file exists already the bug is the same
3. do not click in the text edit to place the cursor. Just start writing.
4. You are most probably changing the include in the master document where you double clicked just before.

Actual Results:  
I write in the tab that I do not see. (master document)

Expected Results:  
I write in the tab that just got opened (included document)
Comment 1 Michel Ludwig 2016-12-27 20:42:27 UTC
Thanks for reporting, but I currently cannot reproduce the problem in the master branch (revision ca9128576b5104e03b90cef4699e2c5e792e79ca).