Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1648

Crashes when using search dialogs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.2.3
    • 2.2.2
    • User Interface
    • None

      Searching in built-in search dialogs can crash Picard.

      Underlying reason seems to be that the center table can get deleted to show the spinner, but events might still trigger trying to access it. E.g.:

      Traceback (most recent call last):
      File "./picard/webservice/_init_.py", line 442, in _process_reply
      self._handle_reply(reply, request)
      File "./picard/webservice/_init_.py", line 429, in _handle_reply
      handler(document, reply, error)
      File "./picard/ui/searchdialog/album.py", line 223, in handle_reply
      self.display_results()
      File "./picard/ui/searchdialog/album.py", line 340, in display_results
      self.prepare_table()
      File "./picard/ui/searchdialog/_init_.py", line 349, in prepare_table
      self.table.itemSelectionChanged.connect(
      AttributeError: 'NoneType' object has no attribute 'itemSelectionChanged'

            outsidecontext Philipp Wolfer
            outsidecontext Philipp Wolfer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2.2.3