Skip to content
Snippets Groups Projects
Commit 5f9cae85 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

avoid error popup at new vc

parent 0af65a08
No related branches found
No related tags found
No related merge requests found
......@@ -256,19 +256,16 @@ public class GeneralTab extends JPanel implements ItemListener {
msg = Messages.getMessage("DATABASE_HDB");
hdbButton = new JRadioButton(msg);
hdbButton.setSelected(Boolean.TRUE.equals(historic));
hdbButton.addItemListener(this);
dbButtonGroup.add(hdbButton);
msg = Messages.getMessage("DATABASE_TDB");
tdbButton = new JRadioButton(msg);
tdbButton.setSelected(Boolean.FALSE.equals(historic));
tdbButton.addItemListener(this);
dbButtonGroup.add(tdbButton);
msg = Messages.getMessage("DATABASE_TTS");
ttsButton = new JRadioButton(msg);
ttsButton.setSelected(historic == null);
ttsButton.addItemListener(this);
dbButtonGroup.add(ttsButton);
msg = Messages.getMessage("DIALOGS_EDIT_VC_GENERAL_NAME");
......@@ -291,6 +288,9 @@ public class GeneralTab extends JPanel implements ItemListener {
dateRangeBox.getDateRangeComboBoxListener().getLast1h(), ItemEvent.SELECTED));
// must be after initialization of DateRangeBox
initializeHistoricCheck();
hdbButton.addItemListener(this);
tdbButton.addItemListener(this);
ttsButton.addItemListener(this);
chartGeneralTabbedPane = new ChartGeneralTabbedPane();
chartGeneralTabbedPane
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment