unchecking "Confirm window to open project in" works (IDEA-60332); some refactoring

This commit is contained in:
Dmitry Jemerov
2010-11-03 19:24:03 +03:00
parent eaf9b562fa
commit c4e12776d5
4 changed files with 10 additions and 3 deletions
@@ -191,7 +191,7 @@ public class NewProjectUtil {
if (openProjects.length > 0) {
final GeneralSettings settings = GeneralSettings.getInstance();
int exitCode = settings.getConfirmOpenNewProject();
if (exitCode < 0) {
if (exitCode == GeneralSettings.OPEN_PROJECT_ASK) {
exitCode = Messages.showDialog(IdeBundle.message("prompt.open.project.in.new.frame"), IdeBundle.message("title.new.project"),
new String[]{IdeBundle.message("button.newframe"), IdeBundle.message("button.existingframe")}, 1, 0,
Messages.getQuestionIcon(), new ProjectNewWindowDoNotAskOption());