Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-34

Runtime error on second connection with Qt.UniqueConnection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 1.1.0, dev
    • Fix Version/s: 5.9
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      Mac OS X 10.6.8
      Python 2.7.2
    • Commits:
      71aa687341b8f4c0ad927b4d9fc60a1aaab6eab3

      Description

      Following code snippet raises RuntimeError but it shouldn't:

      >>> from PySide.QtCore import *
      >>> class Obj(QObject):
      ... signal = Signal()
      ...
      >>> obj = Obj()
      >>> def hi(): print 'hi'
      ...
      >>> obj.signal.connect(hi, Qt.UniqueConnection)
      True
      >>> obj.signal.connect(hi, Qt.UniqueConnection)
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      RuntimeError: Failed to connect signal signal().

      Instead of RuntimeError it should have just returned False.

        Attachments

        For Gerrit Dashboard: PYSIDE-34
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              crmaurei Cristian Maureira-Fredes
              Reporter:
              densh Den Shabalin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes