Skip to content

Commit

Permalink
IDEA-235831 Quit confirmation dialog is shown on a wrong desktop on m…
Browse files Browse the repository at this point in the history
…acOS

a bit safer fix

GitOrigin-RevId: 17d190db6d11b6c45e7a199d98c3fa6064d04ae7
  • Loading branch information
JB-Dmitry authored and intellij-monorepo-bot committed Jul 21, 2021
1 parent 2ef4de2 commit 5132616
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
package com.intellij.openapi.wm.impl;

import com.intellij.ide.DataManager;
import com.intellij.ide.impl.ProjectUtil;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.ProjectManager;
import com.intellij.openapi.wm.FocusWatcher;
import com.intellij.openapi.wm.IdeFrame;
import com.intellij.openapi.wm.ex.WindowManagerEx;
Expand Down Expand Up @@ -220,7 +220,7 @@ private void dispatchHiddenOrClosed(final Window window) {
Window window = getFocusedWindowForProject(project);
if (window == null) {
if (project == null) {
Project[] projects = ProjectManager.getInstance().getOpenProjects();
Project[] projects = ProjectUtil.getOpenProjects();
if (projects.length == 1) {
project = projects[0];
}
Expand Down

0 comments on commit 5132616

Please sign in to comment.