Skip to content

Commit

Permalink
Stop using the deprecated displayFilename property in initializer.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgibbs committed Jul 9, 2019
1 parent b7d67fa commit 2810660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydm/widgets/related_display_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ def __init__(self, parent=None, filename=None):
self.setIconSize(QSize(16, 16))
self.setIcon(self._icon)

self._filenames = []
self._filenames = [filename] if filename is not None else []
self._titles = []
self._macros = []
self.num_additional_items = 0
self._shift_key_was_down = False
self.setCursor(QCursor(self._icon.pixmap(16, 16)))
self._display_menu_items = None
self._display_filename = filename if filename is not None else ""
self._display_filename = ""
self._macro_string = None
self._open_in_new_window = False
self.open_in_new_window_action = QAction("Open in New Window", self)
Expand Down

0 comments on commit 2810660

Please sign in to comment.