Bug 228321

Summary: Autosave interacts with find/replace textfield moving cursor into current file textarea
Product: [Applications] kile Reporter: Andrea <andrea.turrini>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED FIXED    
Severity: normal CC: j__n
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andrea 2010-02-24 15:37:19 UTC
Version:           2.1beta3 (using KDE 4.3.5)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31.12-0.1-desktop
Installed from:    openSUSE RPMs

Hi all,
I have just noted that autosave moves the cursor from the find/replace textfield to the area containing current file. This can be very dangerous, expecially when you have selected some text for finding/replacing something in selection only since the text typed during the autosave will replace the content of your selection.

How to reproduce:
1) enable autosave
2) type something (in order to have a modified file)
3) open find/replace tool
4) type something in find/replace textfield
5) wait until autosave
6) check the position of the cursor

This problem does not depend on Structure refresh, since it occurs also when Files and Project view is chosen.
Comment 1 j__n 2010-04-08 02:20:10 UTC
Not only autosave, but also save will also do this.  It will also move your cursor if you are in the konsole view.
Comment 2 Michel Ludwig 2010-05-25 22:15:05 UTC
SVN commit 1130621 by mludwig:

Change the focus less often explicitly as this causes undesired side effects.

BUG: 228321


 M  +0 -5      kileviewmanager.cpp  
 M  +1 -4      widgets/konsolewidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1130621