mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-02 17:19:37 +00:00
fixing bug 2317 comment #7 by checking whether a tab is selected at all in the new vertical tab layout panel
This commit is contained in:
1 parent
535fe0e5fa
commit
bcbcd4ca34
1 file changed
+4
-1
+4
-1
@@ -98,7 +98,10 @@ public class AdminConsoleEntryPoint extends AbstractEntryPoint implements Regatt
|
||||
Widget widgetAssociatedToVerticalTab = verticalTabLayoutPanel.getWidget(verticalTabLayoutPanel.getSelectedIndex());
|
||||
if (widgetAssociatedToVerticalTab instanceof TabLayoutPanel) {
|
||||
TabLayoutPanel selectedTabLayoutPanel = (TabLayoutPanel)widgetAssociatedToVerticalTab;
|
||||
widgetAssociatedToVerticalTab = selectedTabLayoutPanel.getWidget(selectedTabLayoutPanel.getSelectedIndex());
|
||||
final int selectedIndex = selectedTabLayoutPanel.getSelectedIndex();
|
||||
if (selectedIndex >= 0) {
|
||||
widgetAssociatedToVerticalTab = selectedTabLayoutPanel.getWidget(selectedIndex);
|
||||
}
|
||||
}
|
||||
refreshDataFor(widgetAssociatedToVerticalTab);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user