summaryrefslogtreecommitdiff
path: root/src/main/python/utils/fileWindow.py
diff options
context:
space:
mode:
authorpravindalve2020-05-28 15:00:10 +0530
committerGitHub2020-05-28 15:00:10 +0530
commitac63205a7d02185f4a917db74bf0964691bf20ea (patch)
tree5d6828cd4df3631a208c0230aae1f2f63684243b /src/main/python/utils/fileWindow.py
parenteeb7908613b11a056885fe3944242b988b898ea4 (diff)
parent9b98d22ee18628f2ef51a65ec8aff2707e991281 (diff)
downloadChemical-PFD-ac63205a7d02185f4a917db74bf0964691bf20ea.tar.gz
Chemical-PFD-ac63205a7d02185f4a917db74bf0964691bf20ea.tar.bz2
Chemical-PFD-ac63205a7d02185f4a917db74bf0964691bf20ea.zip
Merge pull request #4 from Blakeinstein/master
Diffstat (limited to 'src/main/python/utils/fileWindow.py')
-rw-r--r--src/main/python/utils/fileWindow.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py
index 8f2fd32..ebe509b 100644
--- a/src/main/python/utils/fileWindow.py
+++ b/src/main/python/utils/fileWindow.py
@@ -10,6 +10,7 @@ from . import dialogs
from .graphics import customView
from .canvas import canvas
from .tabs import customTabWidget
+from .undo import resizeCommand
class fileWindow(QMdiSubWindow):
@@ -125,10 +126,7 @@ class fileWindow(QMdiSubWindow):
currentTab = self.tabber.currentWidget()
result = dialogs.paperDims(self, currentTab._canvasSize, currentTab._ppi, currentTab.objectName()).exec_()
if result is not None:
- currentTab.canvasSize, currentTab.ppi = result
- return self.resizeHandler()
- else:
- return None
+ currentTab.painter.undoStack.push(resizeCommand(result, currentTab, self))
def sideViewToggle(self):
#Function checks if current side view tab is set, and toggles view as required