mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better fix for IDEA-161754 (see IDEA-CR-14081)
This commit is contained in:
@@ -18,7 +18,6 @@ package com.intellij.execution;
|
||||
|
||||
import com.intellij.CommonBundle;
|
||||
import com.intellij.ide.GeneralSettings;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.DialogWrapper;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
@@ -52,7 +51,6 @@ public class TerminateRemoteProcessDialog {
|
||||
GeneralSettings.ProcessCloseConfirmation confirmation = getConfirmation(exitCode, canDisconnect);
|
||||
if (confirmation != null) {
|
||||
GeneralSettings.getInstance().setProcessCloseConfirmation(confirmation);
|
||||
ApplicationManager.getApplication().saveSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -765,12 +765,12 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
|
||||
|
||||
myDisposeInProgress = true;
|
||||
|
||||
saveSettings();
|
||||
|
||||
if (!force && !canExit()) {
|
||||
return;
|
||||
}
|
||||
|
||||
saveSettings();
|
||||
|
||||
boolean success = disposeSelf(!force);
|
||||
if (!success || isUnitTestMode()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user