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

QSystemTrayIcon::activated is called more than once per click

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.6.0 RC
    • Component/s: QPA: X11/XCB
    • Labels:
      None
    • Commits:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            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