Skip to content

Commit

Permalink
Fixed issue #1007.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsschmidt1337 committed Dec 3, 2023
1 parent c0bd6b2 commit e11770b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public enum ProjectActions {
* @param createOnlyDefault
*/
public static boolean createNewProject(Editor3DWindow win, boolean createOnlyDefault) {
if (Editor3DWindow.getWindow().isReviewingAPart()) {
Editor3DWindow.getWindow().setReviewingAPart(false, null);
}
if (askForUnsavedChanges(win, createOnlyDefault, true) && !createOnlyDefault && new NewProjectDialog(false).open() == IDialogConstants.OK_ID) {
while (new File(Project.getTempProjectPath()).isDirectory()) {
MessageBox messageBoxError = new MessageBox(win.getShell(), SWT.ICON_ERROR | SWT.YES | SWT.CANCEL | SWT.NO);
Expand Down Expand Up @@ -277,6 +280,9 @@ private static boolean askForUnsavedChanges(Editor3DWindow win, boolean createOn
* @param path
*/
public static boolean openProject(String path) {
if (Editor3DWindow.getWindow().isReviewingAPart()) {
Editor3DWindow.getWindow().setReviewingAPart(false, null);
}

if (askForUnsavedChanges(Editor3DWindow.getWindow(), false, true)) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2891,6 +2891,7 @@ public void setReviewingAPart(boolean reviewingAPart, Set<DatFile> partsForRevie
cmpSyncAndReviewPtr[0].getParent().layout(true);

this.reviewingAPart = reviewingAPart;
updateTreeUnsavedEntries();
}

public ManipulatorAxisMode getWorkingLayer() {
Expand Down

0 comments on commit e11770b

Please sign in to comment.