FS#44646 - [kompare] we can not select files
Attached to Project:
Arch Linux
Opened by patrick (potomac) - Sunday, 19 April 2015, 17:19 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 27 August 2015, 22:59 GMT
Opened by patrick (potomac) - Sunday, 19 April 2015, 17:19 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 27 August 2015, 22:59 GMT
|
Details
Description:
after upgrading to kompare 15.04.0-2 package I notice a weird bug : the GUI only allows directories to be selected, that means we can not select files, which is silly, because the purpose of kompare is to compare 2 files, and not 2 directories Additional info: * package version(s) kompare 15.04.0-2 * config and/or log files etc. Steps to reproduce: - run kompare 15.04.0-2 - try to select a file - you will notice that you can't select a file, only directories are allowed in the GUI |
This task depends upon
Closed by Antonio Rojas (arojas)
Thursday, 27 August 2015, 22:59 GMT
Reason for closing: Fixed
Additional comments about closing: kompare 15.08.0-2
Thursday, 27 August 2015, 22:59 GMT
Reason for closing: Fixed
Additional comments about closing: kompare 15.08.0-2
could it be a package problem or a mismatch version for QT5 libraries ?
https://git.reviewboard.kde.org/r/123697/
https://git.reviewboard.kde.org/r/123696/
https://git.reviewboard.kde.org/r/123698/
https://git.reviewboard.kde.org/r/123767/
https://git.reviewboard.kde.org/r/123776/
Just used Kompare, files were indeed listed. Couldn't select them.
Then I looked in the "filetype" chooser, only "directories" is available. After that, files aren't listed anymore.
Will report it upstream asap.
I tried also the git version of kompare, the bug is still here
I found a workaround by changing 2 lines in main.cpp file :
original lines ( lines 231 and 232 )
dialog.setFirstURLRequesterMode( KFile::File|KFile::Directory|KFile::ExistingOnly );
dialog.setSecondURLRequesterMode( KFile::File|KFile::Directory|KFile::ExistingOnly );
my changes :
dialog.setFirstURLRequesterMode( KFile::File||KFile::Directory|KFile::ExistingOnly );
dialog.setSecondURLRequesterMode( KFile::File||KFile::Directory|KFile::ExistingOnly );
I set an "OR" with "||" instead a "|" between "KFile::File" and "KFile::Directory",
another solution :
dialog.setFirstURLRequesterMode( KFile::File|KFile::ExistingOnly );
dialog.setSecondURLRequesterMode( KFile::File|KFile::ExistingOnly );
here I simply delete "KFile::Directory" in order to be sure that files can be selected,
my patch works, but I am not sure if it's the best solution
it seems that they have accepted the patch :
https://quickgit.kde.org/?p=kompare.git&a=commitdiff&h=5ddaf63d1a7ee24b3fe8a4d102b192d40c4c7fc9&hp=691795b74dbe474e4696d477d591490eeb580760