--- Vago/trunk/Vago/libs/DropTableWidget/droptablewidget.cpp 2016/12/09 19:04:18 1061 +++ s10k/Vago/libs/DropTableWidget/droptablewidget.cpp 2017/12/30 13:57:32 1093 @@ -145,12 +145,14 @@ QString DropTableWidget::getFileAbsolute QString fileCommand=this->item(row,2)->text(); int idxFileName=fileCommand.indexOf(this->item(row,0)->text()); //Search first for the file name - int fileAbsoluteStartIdx=Util::indexOfBackward(fileCommand,"\"",idxFileName); + + int fileAbsoluteStartIdx=fileCommand.lastIndexOf("\"",idxFileName); fileCommand.remove(0,fileAbsoluteStartIdx); - int fileAbsoluteEndIdx=fileCommand.indexOf('"',1); //1 to find the end quoate and not the start - return fileCommand.remove(fileAbsoluteEndIdx,(fileCommand.size()-1)-fileAbsoluteEndIdx); + int fileAbsoluteEndIdx=fileCommand.indexOf('"',1); //1 to find the end quote and not the start + + return fileCommand.remove(fileAbsoluteEndIdx+1,(fileCommand.size()-1)-fileAbsoluteEndIdx); } QString DropTableWidget::getOutputAbsolute(int row){ @@ -160,7 +162,7 @@ QString DropTableWidget::getOutputAbsolu command.remove(fileAbsoluteEndIdx,command.size()-1); - int fileAbsoluteStartIdx=Util::indexOfBackward(command,"\"",command.size()-1)+1; + int fileAbsoluteStartIdx=command.lastIndexOf("\"",command.size()-1)+1; return command.remove(0,fileAbsoluteStartIdx); }