Hello,<br>
I've just encountered a nasty bug in kfiledialog (open mode) when you have<br>some history. The steps to reproduce are:<br>
<br>1 - Start a KDE app which uses kfiledialog (e.g. KWrite) possibly with<br>recent *opened* files.<br>2 - Click on 'open'.<br>3 - Type the name of a folder you can see in the dialog's view.<br><div class="Ih2E3d">

3 - Press Enter.<br>
<br>
</div> Result: the first file in the history opens.<br>
<br>Expected behavior: the dialog should 'cd' into the folder typed, and it<br>shouldn't open any file (especially because it is not even telling you what<br>the file that is going to be opened is ;-) ).<br>
Currently, if you press the 'Open' button the behiavour is correct.<br>
<br>The patch should fix. Can someone please review it and tell me if it's ok to commit?<br>
<br>Regards<br>-- <br>Alessandro