Skip to content

Commit

Permalink
Backport fix for issue #2315
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Aug 22, 2015
1 parent c127954 commit 31ead74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spyderlib/widgets/dataframeeditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def setup_and_check(self, data, title=''):
self.setLayout(self.layout)
self.setWindowIcon(get_icon('arredit.png'))
if title:
title = to_text_string(title) # in case title is not a string
title = to_text_string(title) + " - %s" % data.__class__.__name__
else:
title = _("%s editor") % data.__class__.__name__
if isinstance(data, TimeSeries):
Expand Down
4 changes: 2 additions & 2 deletions spyderlib/widgets/dicteditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ def createEditor(self, parent, option, index):
elif isinstance(value, (DataFrame, TimeSeries))\
and DataFrame is not FakeObject:
editor = DataFrameEditor()
if not editor.setup_and_check(value):
return
if not editor.setup_and_check(value, title=key):
return
self.create_dialog(editor, dict(model=index.model(), editor=editor,
key=key, readonly=readonly))
return None
Expand Down

0 comments on commit 31ead74

Please sign in to comment.