Update MainWindow.cpp

Fix Travis build error introduced by the last merged PR
This commit is contained in:
Iulian Onofrei
2016-09-23 15:23:21 +03:00
committed by GitHub
parent 420b98fee3
commit d825af8c69

View File

@@ -865,8 +865,8 @@ void MainWindow::executeQuery()
int position = editor->positionFromLineIndex(cursor_line, cursor_index);
QString entireSQL = editor->text();
QString firstPartEntireSQL = entireSQL.leftRef(position);
QString secondPartEntireSQL = entireSQL.rightRef(entireSQL.length() - position);
QString firstPartEntireSQL = entireSQL.left(position);
QString secondPartEntireSQL = entireSQL.right(entireSQL.length() - position);
QString firstPartSQL = firstPartEntireSQL.split(";").last();
QString lastPartSQL = secondPartEntireSQL.split(";").first();