Commit 8cd1c32c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '757-remove-an-active-plugin' into 'devel_12.2.x'

after active tab is unloaded the first tab is selected as active

See merge request !719
parents b0517cf5 28f3d0ea
Pipeline #9556 passed with stage
in 11 minutes and 46 seconds
minerva (12.2.1) stable; urgency=medium
* Bug fix: export of reaction colorsi in SBML is properly encoded (COPASI can
read colors properly) (#744)
* Bug fix: removing active plugin didn't switch plugin tab to the next loaded
plugin (#757)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 1 Apr 2019 17:00:00 +0200
......
......@@ -1175,6 +1175,13 @@ GuiUtils.prototype.removeTab = function (abstractGuiElement, panel) {
} else {
logger.warn("Cannot find tab for panel: " + panel);
}
var isActive = $(".nav-tabs > li.active", $(abstractGuiElement.getElement())).length > 0;
if (!isActive) {
var links = $(".nav-tabs > li", $(abstractGuiElement.getElement()));
if (links.length > 0) {
$("a", $(links[0])).click();
}
}
};
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment