Merge lp:~fboucault/bamf-qt/bamf-qt-crashfix702566 into lp:bamf-qt
Proposed by
Florian Boucault
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Ugo Riboni | ||||
Approved revision: | 365 | ||||
Merged at revision: | 368 | ||||
Proposed branch: | lp:~fboucault/bamf-qt/bamf-qt-crashfix702566 | ||||
Merge into: | lp:bamf-qt | ||||
Diff against target: |
416 lines (+241/-16) 10 files modified
CMakeLists.txt (+4/-0) bamf-application.cpp (+12/-3) bamf-factory.cpp (+3/-3) bamf-indicator-proxy.cpp (+26/-0) bamf-indicator-proxy.h (+61/-0) bamf-indicator.cpp (+62/-0) bamf-indicator.h (+55/-0) bamf-matcher.cpp (+15/-9) bamf-plugin.cpp (+2/-0) bamf-window.cpp (+1/-1) |
||||
To merge this branch: | bzr merge lp:~fboucault/bamf-qt/bamf-qt-crashfix702566 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ugo Riboni | Pending | ||
Review via email: mp+46439@code.launchpad.net |
Description of the change
Added support for indicators (new BamfIndicator class).
Added safeguards for when BamfFactory:
Replaced static_cast with qobject_cast for values returned from BamfFactory:
To post a comment you must log in.
From Ugo Riboni's previous review:
"""
Functionally it does its job, the crash disappears.
However I don't exactly understand *why* this MR fixes the issue, so I'm not sure I'm the most qualified to review this. Or perhaps some more comments in the code are in order ?
Anyway, please fix the (mostly style) issues below:
* The methods Address and Path in BamfIndicator should return QString() when failing, instead of NULL. tionChanged and OnActiveWindowC hanged in BamfMatcher
* In the BamfIndicator constructor, please align the arguments on the same line. The same for OnActiveApplica
"""