| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1179,6 +1179,12 @@ public void showCoverageFrame() { | |||
| 1179 | 1179 | /** Show Submit Client dialog */ | |
| 1180 | 1180 | private volatile AbstractAction _submitAction = new AbstractAction("Submit") { | |
| 1181 | 1181 | public void actionPerformed(ActionEvent ae) { | |
| 1182 | + // try to re-connect if possible | ||
| 1183 | + if(_submitFrame.getServer()==null){ | ||
| 1184 | + _submitFrame = SubmitClient.createSubmitForm(SubmitClient.prepareServer(true)); | ||
| 1185 | + if(_submitFrame.getServer()==null) | ||
| 1186 | + return; | ||
| 1187 | + } | ||
| 1182 | 1188 | String text = _model.getActiveDocument().getText(); | |
| 1183 | 1189 | _submitFrame.setText(text); | |
| 1184 | 1190 | _submitFrame.setVisible(true); | |
@@ -3766,7 +3772,8 @@ public void optionChanged(OptionEvent<Boolean> oce) { | |||
| 3766 | 3772 | _editExternalDialog = new EditExternalDialog(MainFrame.this); | |
| 3767 | 3773 | _jarOptionsDialog = new JarOptionsDialog(MainFrame.this); | |
| 3768 | 3774 | ||
| 3769 | - _submitFrame = SubmitClient.createSubmitForm(SubmitClient.prepareServer()); | ||
| 3775 | + // false = hide error messages | ||
| 3776 | + _submitFrame = SubmitClient.createSubmitForm(SubmitClient.prepareServer(false)); | ||
| 3770 | 3777 | ||
| 3771 | 3778 | initTabbedPanesFrame(); | |
| 3772 | 3779 | initDebugFrame(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments