Ignore:
Timestamp:
2011-06-28T17:07:42+12:00 (13 years ago)
Author:
ak19
Message:

Part 1 of 2 commits for ticket 766 (the other commits will be in GS2): the GSI settings dialog now provides the ability to freeze the port number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/server/Server2Settings.java

    r23251 r24207  
    109109        newFileLines = scriptReadWrite.queryReplace(newFileLines, BaseServer.Property.AUTOSTART, newAutoEnter);
    110110    }
     111    boolean keep_port = keepPortToggle.isSelected();
     112    if(keepPort != keep_port) {
     113        String newKeepPort = keep_port ? "1" : "0";
     114        newFileLines = scriptReadWrite.queryReplace(newFileLines, BaseServer.Property.KEEPPORT, newKeepPort);
     115    }
    111116
    112117    // external access - onSave() would have updated this value
Note: See TracChangeset for help on using the changeset viewer.