From f963b8bd42dfccfe1faf51b530a3617f7250ed8f Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Tue, 19 Dec 2017 19:05:07 +0300 Subject: [PATCH] Fix QuickFixTestGenerated$DeprecatedSymbolUsage$TypeAliases Revert asking super isAvailable in DeprecatedSymbolUsageInWholeProjectFix --- .../replaceWith/DeprecatedSymbolUsageInWholeProjectFix.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/idea/src/org/jetbrains/kotlin/idea/quickfix/replaceWith/DeprecatedSymbolUsageInWholeProjectFix.kt b/idea/src/org/jetbrains/kotlin/idea/quickfix/replaceWith/DeprecatedSymbolUsageInWholeProjectFix.kt index 665763c420d..6dfd6ebd3c5 100644 --- a/idea/src/org/jetbrains/kotlin/idea/quickfix/replaceWith/DeprecatedSymbolUsageInWholeProjectFix.kt +++ b/idea/src/org/jetbrains/kotlin/idea/quickfix/replaceWith/DeprecatedSymbolUsageInWholeProjectFix.kt @@ -43,6 +43,7 @@ class DeprecatedSymbolUsageInWholeProjectFix( override fun startInWriteAction() = false override fun isAvailable(project: Project, editor: Editor?, file: KtFile): Boolean { + if (!super.isAvailable(project, editor, file)) return false return targetPsiElement() != null }