Skip to content

Commit

Permalink
Small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsavol committed Dec 11, 2024
1 parent cf77cee commit 426e457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spinetoolbox/project_item/project_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def undo_specification(self):
return self._specification

def set_specification(self, specification):
"""Pushes a new SetItemSpecificationCommand to the toolbox' undo stack."""
"""Pushes a new SetItemSpecificationCommand to the undo stack."""
if specification == self._specification:
return
self._toolbox.undo_stack.push(
Expand Down
2 changes: 1 addition & 1 deletion spinetoolbox/project_item/specification_editor_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __init__(self, toolbox, specification=None, item=None):
self._spec_toolbar = _SpecNameDescriptionToolbar(self, specification, self._undo_stack)
self._spec_toolbar.show_toolbox_action.triggered.connect(self._toolbox.restore_and_activate)
self._spec_toolbar.name_changed.connect(self._set_window_title)
self.addToolBar(Qt.TopToolBarArea, self._spec_toolbar)
self.addToolBar(Qt.ToolBarArea.TopToolBarArea, self._spec_toolbar)
self._populate_main_menu()
self._spec_toolbar.save_action.triggered.connect(self._save)
self._spec_toolbar.duplicate_action.triggered.connect(self._duplicate)
Expand Down

0 comments on commit 426e457

Please sign in to comment.