mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-26547 attempt to use smart url opener if no browser specified, but first listed specified in the settings
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -53,6 +53,14 @@ public final class BrowserLauncherImpl extends BrowserLauncherAppless {
|
||||
url = serverManager.addAuthToken(parsedUrl).toExternalForm();
|
||||
}
|
||||
|
||||
if (browser == null) {
|
||||
// https://youtrack.jetbrains.com/issue/WEB-26547
|
||||
WebBrowserManager browserManager = WebBrowserManager.getInstance();
|
||||
if (browserManager.getDefaultBrowserPolicy() == DefaultBrowserPolicy.FIRST) {
|
||||
browser = browserManager.getFirstActiveBrowser();
|
||||
}
|
||||
}
|
||||
|
||||
super.browse(url, browser, project);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user