[PATCH] KDirOperator emits fileSelected() signal twice on doubleclick in doubleclick mode

Alexander Dymo alexander.dymo at gmail.com
Fri Jul 17 21:43:26 BST 2009


Hey,
I've just found that KDirOperator emits fileSelected() signal twice on 
doubleclick when doubleclick is set in system settings. This leads to strange 
effects, like KDevelop opening the same file twice.

KDirOperator connects both activated() and doubleClicked() from itemview, 
therefore the signal is emitted twice. I believe that connecting activated() 
should be enough, but I'm not sure.

This was introduced in rev.895027 
(http://websvn.kde.org/branches/KDE/4.2/kdelibs/kfile/kdiroperator.cpp?view=log#rev895027). 
I don't fully understand that change, so could anyone with a deeper knowledge 
please take a look at this.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdiroperator_doubleclick.patch
Type: text/x-patch
Size: 677 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090717/e5b41743/attachment.bin>


More information about the kde-core-devel mailing list