Skip to content

Commit

Permalink
Do not auto open editor with log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Montenegro committed Jun 20, 2016
1 parent beca2bf commit f767e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/main/java/com/ruke/vrjassc/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import de.peeeq.jmpq.JmpqEditor;
import de.peeeq.jmpq.JmpqError;

import java.awt.*;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;
Expand Down Expand Up @@ -194,14 +193,6 @@ public static void main(String[] args) {

if (logWriter != null) {
logWriter.close();

try {
if (error) {
Desktop.getDesktop().edit(logFile);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ public Expression visitVariableExpression(VariableExpressionContext ctx) {
if (ctx.index != null) {
index = this.visit(ctx.index);

if (symbol.getType() instanceof UserTypeSymbol) {
Symbol operator = ((UserTypeSymbol) symbol.getType()).resolve("[]");
if (symbol.getType().isUserType()) {
Symbol operator = ((ScopeSymbol) symbol.getType()).resolve("[]");
if (operator != null) {
ExpressionList el = new ExpressionList();

Expand Down

0 comments on commit f767e3f

Please sign in to comment.