Multiple problems with filters in StandardOutputView plugin including
discrepancy between output view, filter and proxy model were caused by
using the tab index instead of view index as a key to m_filters and
m_proxyModels maps.
BUG: 343124
brauch | |
kfunk |
KDevelop |
Multiple problems with filters in StandardOutputView plugin including
discrepancy between output view, filter and proxy model were caused by
using the tab index instead of view index as a key to m_filters and
m_proxyModels maps.
BUG: 343124
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
If these changes pass the review, I'd like to also make a little refactoring to this code consisting of using one QMap with structs containing pointers to corresponding view, filter and proxy model instead of 3 QMaps with the same keys in current code. Did I get it right that I should do these changes in separate patch?
@brauch , sorry for mentioning you explicitly, just had a feeling that nobody has noticed the request for review :)
Yes, separate patch. And I like your idea of putting this into one map instead! The code as-is is difficult to understand.
Hi @kfunk. Sorry for being a little obtrusive, but I just wanted to clarify this a little. Should I wait for this ad hoc fix to be reviewed and accepted, or should I go directly to the refactoring and fix the bug on the way?
Just applied this change and tested it: Fixes the mentioned bug. I'll push to 5.2 branch.
Thanks a lot for the patch! Go ahead with refactoring this code in master branch, we'd appreciate it.
Thanks a lot for the patch! Go ahead with refactoring this code in master branch, we'd appreciate it.
Thank you for the review :) I'll proceed to work on this soon.