Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Canvas: Use 'windowFilePath' to display display current filename instead of the title #2206

Merged
merged 2 commits into from
Apr 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Orange/canvas/application/canvasmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ def setup_ui(self):
frame.setColor(QColor(0, 0, 0, 100))
frame.setWidget(self.scheme_widget)

# Main window title and title icon.
self.set_document_title(self.scheme_widget.scheme().title)
self.scheme_widget.titleChanged.connect(self.set_document_title)
# Window 'title'
self.setWindowFilePath(self.scheme_widget.path())
self.scheme_widget.pathChanged.connect(self.setWindowFilePath)
self.scheme_widget.modificationChanged.connect(self.setWindowModified)

# QMainWindow's Dock widget
Expand Down
2 changes: 1 addition & 1 deletion Orange/canvas/application/schemeinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __setupUi(self):
self.desc_edit = QTextEdit(self)
self.desc_edit.setTabChangesFocus(True)

layout.addRow(self.tr("Name"), self.name_edit)
layout.addRow(self.tr("Title"), self.name_edit)
layout.addRow(self.tr("Description"), self.desc_edit)

self.__schemeIsUntitled = True
Expand Down