KFileWidget patch

Albert Astals Cid aacid at kde.org
Sun Jun 17 01:23:10 BST 2007


Hi, i know i promised never to code another kdelibs patch, but hey, 
KFileWidget was failing and i had nothing better to do on a satuday night, 
so...

The problem:
 Using KFileDialog to open the second (actually not the first) suggested item 
in completion does not work, it always opens the first.

Steps to reproduce the problem:
 * Open okular
 * File->Open
 * Go to a dir with some pdf files beginning with a
 * Type a in the location field
      afoo.pdf
      abar.pdf
   appear on the suggestions box
 * Press down to select the second suggested entry
 * Press enter
 * afoo is opened

The problem is that setSelection was not beign called because the activated 
signal of the lineedit is not emited.

My patch changes a bit how things work, but i could not find any regression 
and it fixes the problem for me.

Comments?

Albert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kfilewidget.patch
Type: text/x-diff
Size: 1999 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070617/b6d71252/attachment.patch>


More information about the kde-core-devel mailing list