Skip to content

Commit

Permalink
do not show n/a if file is not available at all
Browse files Browse the repository at this point in the history
  • Loading branch information
gorrus committed Jul 27, 2016
1 parent e9b493a commit 510b9f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -250,7 +250,7 @@ private void update() {
}

if (charsetName == null) {
charsetName = "n/a";
charsetName = file != null ? "n/a" : "";
}

String toolTipText;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -109,7 +109,7 @@ private void update() {

if (lineSeparator == null) {
toolTipText = "No line separator";
panelText = "n/a";
panelText = file != null ? "n/a" : "";
myActionEnabled = false;
}

Expand Down

0 comments on commit 510b9f9

Please sign in to comment.