Commit 7e0c289e authored by hjk's avatar hjk

editormanager: fix handling of file names ending with + like foo.c++

Reviewed-by: Tobias Hunger
parent 187e4d68
...@@ -1187,8 +1187,10 @@ int extractLineNumber(QString *fileName) ...@@ -1187,8 +1187,10 @@ int extractLineNumber(QString *fileName)
return -1; return -1;
if (fileName->at(i) == ':' || fileName->at(i) == '+') { if (fileName->at(i) == ':' || fileName->at(i) == '+') {
int result = fileName->mid(i+1).toInt(); int result = fileName->mid(i+1).toInt();
*fileName = fileName->left(i); if (result) {
return result; *fileName = fileName->left(i);
return result;
}
} }
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment