Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48068

QSystemTrayIcon::activated is called more than once per click

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0 RC
    • 5.5.0
    • QPA: X11/XCB
    • None
    • 64481bcc671892cd140ce5415eaec7fef3e2a35d

    Description

      This happens for instance with the StatusNotifier based tray icon backend in Qt 5.5.0. It should affect all qpa-based tray implementations.

      To reproduce:

      • Create a QSystemTrayIcon
      • Connect the activated signal
      • show(), hide(), show()
      • Click the tray icon
      • The slot will be invoked twice.

      The signal will be called once for each pair of hide/show calls.

      The bug seems to be in install_sys_qpa: the signal is connected each time show() is called. I have a patch.

      Attachments

        For Gerrit Dashboard: QTBUG-48068
        # Subject Branch Project Status CR V

        Activity

          People

            srutledg Shawn Rutledge
            ckamm Christian Kamm
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes