Skip to content

Commit

Permalink
Always use the new path handling code, whether or not the target is a…
Browse files Browse the repository at this point in the history
… new window or existing window.
  • Loading branch information
mattgibbs committed Oct 18, 2016
1 parent 513b119 commit 7ffb6e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydm/widgets/related_display_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, filename=None, parent=None):
self.app = QApplication.instance()

def getDisplayFilename(self):
return self._display_filename
return str(self._display_filename)

def setDisplayFilename(self, value):
if self._display_filename != value:
Expand All @@ -40,8 +40,8 @@ def open_display(self, target=EXISTING_WINDOW):
else:
filename = self.app.get_path(self.displayFilename, self)
if target == self.EXISTING_WINDOW:
self.window().go(str(self.displayFilename))
self.window().go(filename)
if target == self.NEW_WINDOW:
self.app.new_window(filename)

displayFilename = pyqtProperty(str, getDisplayFilename, setDisplayFilename, resetDisplayFilename)
displayFilename = pyqtProperty(str, getDisplayFilename, setDisplayFilename, resetDisplayFilename)

0 comments on commit 7ffb6e6

Please sign in to comment.