From 6f992d04205ac62fe34bc46131d62f16143ae306 Mon Sep 17 00:00:00 2001 From: anna Date: Thu, 5 Jan 2012 15:33:13 +0100 Subject: [PATCH] move: show directory chooser when package was not changed --- .../move/moveClassesOrPackages/DestinationFolderComboBox.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/refactoring/move/moveClassesOrPackages/DestinationFolderComboBox.java b/java/java-impl/src/com/intellij/refactoring/move/moveClassesOrPackages/DestinationFolderComboBox.java index d95b74376d8e..34560c28625d 100644 --- a/java/java-impl/src/com/intellij/refactoring/move/moveClassesOrPackages/DestinationFolderComboBox.java +++ b/java/java-impl/src/com/intellij/refactoring/move/moveClassesOrPackages/DestinationFolderComboBox.java @@ -177,7 +177,7 @@ public abstract class DestinationFolderComboBox extends ComboboxWithBrowseButton } final PsiDirectory selectedPsiDirectory = selectedItem.getDirectory(); VirtualFile selectedDestination = selectedPsiDirectory.getVirtualFile(); - if (showChooserWhenDefault && selectedDestination == myInitialTargetDirectory) { + if (showChooserWhenDefault && selectedDestination == myInitialTargetDirectory.getVirtualFile()) { selectedDestination = MoveClassesOrPackagesUtil.chooseSourceRoot(targetPackage, mySourceRoots, myInitialTargetDirectory); } if (selectedDestination == null) return null;