From 0188ed74fae0eb4479b9131002304b440e1010e9 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 8 Sep 2011 05:14:52 +0200 Subject: Removed duplicate error message on parser error diff --git a/src/mainwin.cc b/src/mainwin.cc index c937279..c4925d5 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -730,18 +730,7 @@ fail: if (parser_error_pos < 0) { PRINT("ERROR: Compilation failed! (no top level object found)"); } else { - int line = 1; - QByteArray pb = this->last_compiled_doc.toAscii(); - char *p = pb.data(); - for (int i = 0; i < parser_error_pos; i++) { - if (p[i] == '\n') - line++; - if (p[i] == 0) { - line = -1; - break; - } - } - PRINTF("ERROR: Compilation failed! (parser error in line %d)", line); + PRINT("ERROR: Compilation failed!"); } if (procevents) QApplication::processEvents(); -- cgit v0.10.1