Merge lp:~aacid/qtubuntu/fix_crash_starting_quassel into lp:qtubuntu

Proposed by Albert Astals Cid
Status: Merged
Approved by: Daniel d'Andrada
Approved revision: 380
Merged at revision: 373
Proposed branch: lp:~aacid/qtubuntu/fix_crash_starting_quassel
Merge into: lp:qtubuntu
Prerequisite: lp:~aacid/qtubuntu/fix_crash_starting_konsole
Diff against target: 33 lines (+12/-3)
2 files modified
src/ubuntuappmenu/theme.cpp (+8/-0)
src/ubuntuappmenu/theme.h (+4/-3)
To merge this branch: bzr merge lp:~aacid/qtubuntu/fix_crash_starting_quassel
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Daniel d'Andrada (community) Approve
Review via email: mp+317471@code.launchpad.net

Commit message

Implement UbuntuAppMenuTheme::createPlatformSystemTrayIcon

Using the base QGenericUnixTheme implementation makes us crash

Description of the change

Implement UbuntuAppMenuTheme::createPlatformSystemTrayIcon

Using the base QGenericUnixTheme implementation makes us crash

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Fixes the crash

review: Approve
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:380
https://unity8-jenkins.ubuntu.com/job/lp-qtubuntu-ci/191/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4260
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4288
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4121
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/4121/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4121
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/4121/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4121
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/4121/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4121
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/4121/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4121
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/4121/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4121
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/4121/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtubuntu-ci/191/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/ubuntuappmenu/theme.cpp'
2--- src/ubuntuappmenu/theme.cpp 2016-12-09 17:04:05 +0000
3+++ src/ubuntuappmenu/theme.cpp 2017-02-16 13:36:32 +0000
4@@ -74,3 +74,11 @@
5 if (useLocalMenu()) return QGenericUnixTheme::createPlatformMenuBar();
6 return new UbuntuPlatformMenuBar();
7 }
8+
9+QPlatformSystemTrayIcon *UbuntuAppMenuTheme::createPlatformSystemTrayIcon() const
10+{
11+ // We can't use QGenericUnixTheme implementation since it needs the platformMenu to
12+ // be a subclass of QDBusPlatformMenu and ours isn't
13+ // TODO Investigate if we're fine with not supporting system trays or we should fix it
14+ return nullptr;
15+}
16
17=== modified file 'src/ubuntuappmenu/theme.h'
18--- src/ubuntuappmenu/theme.h 2016-06-21 16:33:19 +0000
19+++ src/ubuntuappmenu/theme.h 2017-02-16 13:36:32 +0000
20@@ -30,9 +30,10 @@
21 QVariant themeHint(ThemeHint hint) const override;
22
23 // For the menus
24- virtual QPlatformMenuItem* createPlatformMenuItem() const override;
25- virtual QPlatformMenu* createPlatformMenu() const override;
26- virtual QPlatformMenuBar* createPlatformMenuBar() const override;
27+ QPlatformMenuItem* createPlatformMenuItem() const override;
28+ QPlatformMenu* createPlatformMenu() const override;
29+ QPlatformMenuBar* createPlatformMenuBar() const override;
30+ QPlatformSystemTrayIcon *createPlatformSystemTrayIcon() const override;
31 };
32
33 #endif // UBUNTU_THEME_H

Subscribers

People subscribed via source and target branches