Skip to content

Commit

Permalink
Merge pull request #1 from dedunumax/STAND-34
Browse files Browse the repository at this point in the history
STAND-34 Disable port settings when OpenMRS is running
  • Loading branch information
dkayiwa committed Nov 9, 2013
2 parents 05acb4a + 7e2d171 commit 06a06e0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/org/openmrs/standalone/MainFrame.java
Expand Up @@ -282,6 +282,9 @@ public void actionPerformed(ActionEvent event) {
btnStart.setEnabled(false);
btnStop.setEnabled(true);

txtTomcatPort.setEditable(false);
txtMySqlPort.setEditable(false);

setStatus(UserInterface.STATUS_MESSAGE_STARTING);

appController.start();
Expand All @@ -295,6 +298,11 @@ public void actionPerformed(ActionEvent event) {
btnStop.setEnabled(false);

appController.stop();

btnStart.setEnabled(true);

txtTomcatPort.setEditable(true);
txtMySqlPort.setEditable(true);
}
}
catch (Exception ex) {
Expand Down Expand Up @@ -514,4 +522,4 @@ private void colorHelper(JButton button, Color color) {
public void onFinishedInitialConfigCheck(){

}
}
}

0 comments on commit 06a06e0

Please sign in to comment.