84 |
84 |
85 # step 2: all open (project) filenames and the active editor |
85 # step 2: all open (project) filenames and the active editor |
86 if vm.canSplit(): |
86 if vm.canSplit(): |
87 sessionDict["ViewManagerSplits"] = { |
87 sessionDict["ViewManagerSplits"] = { |
88 "Count": vm.splitCount(), |
88 "Count": vm.splitCount(), |
89 "Orientation": vm.getSplitOrientation(), |
89 "Orientation": vm.getSplitOrientation().value, |
90 } |
90 } |
91 else: |
91 else: |
92 sessionDict["ViewManagerSplits"] = { |
92 sessionDict["ViewManagerSplits"] = { |
93 "Count": 0, |
93 "Count": 0, |
94 "Orientation": 1, |
94 "Orientation": 1, |
279 if sessionDict["Project"]: |
279 if sessionDict["Project"]: |
280 project.openProject(sessionDict["Project"], False) |
280 project.openProject(sessionDict["Project"], False) |
281 |
281 |
282 # step 2: (project) filenames and the active editor |
282 # step 2: (project) filenames and the active editor |
283 # ================================================= |
283 # ================================================= |
284 vm.setSplitOrientation(sessionDict["ViewManagerSplits"]["Orientation"]) |
284 vm.setSplitOrientation( |
|
285 Qt.Orientation(sessionDict["ViewManagerSplits"]["Orientation"]) |
|
286 ) |
285 vm.setSplitCount(sessionDict["ViewManagerSplits"]["Count"]) |
287 vm.setSplitCount(sessionDict["ViewManagerSplits"]["Count"]) |
286 |
288 |
287 editorsDict = {} |
289 editorsDict = {} |
288 for editorDict in sessionDict["Editors"]: |
290 for editorDict in sessionDict["Editors"]: |
289 if editorDict["Clone"] and editorDict["Filename"] in editorsDict: |
291 if editorDict["Clone"] and editorDict["Filename"] in editorsDict: |