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

Runtime error on second connection with Qt.UniqueConnection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9
    • 1.1.0
    • PySide
    • None
    • Mac OS X 10.6.8
      Python 2.7.2
    • 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

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            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