OpenIDE fix open urls in license agreement for astra linux

This commit is contained in:
Nikita Iarychenko
2026-03-02 15:05:30 +04:00
parent f60ef687c8
commit 8340343796

View File

@@ -1,6 +1,10 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Modified by Nikita Iarychenko at 2026 as part of the OpenIDE project(https://openide.ru).
// Any modifications are available on the same license terms as the original source code.
package com.intellij.ide.gdpr.ui
import com.intellij.ide.BrowserUtil
import org.jsoup.Jsoup
import org.jsoup.nodes.Element
import org.jsoup.nodes.TextNode
@@ -85,7 +89,7 @@ class HtmlRtfPane {
val range = linkMap.keys.firstOrNull { it.contains(resultPane.viewToModel(location)) } ?: return
val link = linkMap[range] ?: return
if (Desktop.isDesktopSupported()) {
Desktop.getDesktop().browse(URI(link))
BrowserUtil.browse(link)
}
}
}