Fix "Save" command not usable after certain (very few) actions.
This commit is contained in:
parent
314334b3aa
commit
f1224f62b4
@ -794,7 +794,7 @@ class EditorSession(QtCore.QObject):
|
||||
self.copiedSchematic = showProgress("Cutting...", task)
|
||||
task = self.currentDimension.fillBlocksIter(self.currentSelection, "air")
|
||||
showProgress("Cutting...", task)
|
||||
self.undoStack.push(command)
|
||||
self.pushCommand(command)
|
||||
|
||||
def copy(self):
|
||||
task = self.currentDimension.exportSchematicIter(self.currentSelection)
|
||||
@ -807,7 +807,7 @@ class EditorSession(QtCore.QObject):
|
||||
dim = self.copiedSchematic.getDimension()
|
||||
imp = PendingImport(dim, view.mouseBlockPos, dim.bounds, self.tr("<Pasted Object>"))
|
||||
command = PasteImportCommand(self, imp, "Paste")
|
||||
self.undoStack.push(command)
|
||||
self.pushCommand(command)
|
||||
|
||||
def pasteBlocks(self):
|
||||
NotImplementedYet()
|
||||
@ -1129,7 +1129,7 @@ class EditorSession(QtCore.QObject):
|
||||
|
||||
imp = PendingImport(schematic.getDimension(), bottomCenter.intfloor(), dim.bounds, name)
|
||||
command = PasteImportCommand(self, imp, "Import %s" % name)
|
||||
self.undoStack.push(command)
|
||||
self.pushCommand(command)
|
||||
|
||||
# --- Undo support ---
|
||||
|
||||
|
@ -302,7 +302,7 @@ class SelectionTool(EditorTool):
|
||||
command = SelectCommand(self.editorSession, selection)
|
||||
if oldBox is not None:
|
||||
command.setText(self.tr("Resize Selection"))
|
||||
self.editorSession.undoStack.push(command)
|
||||
self.editorSession.pushCommand(command)
|
||||
self.updateNodes()
|
||||
self.selectionNode.loadImmediateChunks()
|
||||
else:
|
||||
|
Reference in New Issue
Block a user