Skip to content

Commit

Permalink
Merge pull request #511 from mattgibbs/related_display_initial_filename
Browse files Browse the repository at this point in the history
Stop using the deprecated displayFilename property in initializer.
  • Loading branch information
hhslepicka authored Jul 9, 2019
2 parents 6f7463b + 2810660 commit 1a9a77d
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 1a9a77d

Please sign in to comment.