Skip to content

Commit

Permalink
bugfix: Tweak app name was filling in empty install path
Browse files Browse the repository at this point in the history
  • Loading branch information
saidelimam committed May 3, 2015
1 parent 2c6c8df commit 9ecd45f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion res/release_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Window close event validation
Unix filenames without extensions couldn't be selected in filebrowser
Author Email autofill include null value
Load project with relative paths in Tweak tab
Zip files content list for shortcut
Zip files content list for shortcut (TFile > ZipFile)
Tweak app name was filling in empty install path


1.2.0
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/dcp/sm/gui/pivot/frames/TweakFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void initialize(Map<String, Object> args, URL url, Resources res)
{
if (!TI.getText().contains("\\") && !TI.getText().contains("/")) {
String s = installPath.getText();
if (s.contains(setupConfig.getAppName())) {
if (s.length() > 0 && s.contains(setupConfig.getAppName())) {
s = s.substring(0, s.lastIndexOf(setupConfig.getAppName())) + TI.getText();
installPath.setText(s);
}
Expand Down

0 comments on commit 9ecd45f

Please sign in to comment.