ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/libs/DropTableWidget/droptablewidget.cpp
(Generate patch)

Comparing s10k/Vago/libs/DropTableWidget/droptablewidget.cpp (file contents):
Revision 1092 by s10k, Sat Dec 30 13:43:28 2017 UTC vs.
Revision 1093 by s10k, Sat Dec 30 13:57:32 2017 UTC

# Line 145 | Line 145 | QString DropTableWidget::getFileAbsolute
145      QString fileCommand=this->item(row,2)->text();
146  
147      int idxFileName=fileCommand.indexOf(this->item(row,0)->text()); //Search first for the file name
148 <    int fileAbsoluteStartIdx=Util::indexOfBackward(fileCommand,"\"",idxFileName);
148 >
149 >    int fileAbsoluteStartIdx=fileCommand.lastIndexOf("\"",idxFileName);
150  
151      fileCommand.remove(0,fileAbsoluteStartIdx);
151    int fileAbsoluteEndIdx=fileCommand.indexOf('"',1); //1 to find the end quoate and not the start
152  
153 <    return fileCommand.remove(fileAbsoluteEndIdx,(fileCommand.size()-1)-fileAbsoluteEndIdx);
153 >    int fileAbsoluteEndIdx=fileCommand.indexOf('"',1); //1 to find the end quote and not the start
154 >
155 >    return fileCommand.remove(fileAbsoluteEndIdx+1,(fileCommand.size()-1)-fileAbsoluteEndIdx);
156   }
157  
158   QString DropTableWidget::getOutputAbsolute(int row){
# Line 160 | Line 162 | QString DropTableWidget::getOutputAbsolu
162  
163      command.remove(fileAbsoluteEndIdx,command.size()-1);
164  
165 <    int fileAbsoluteStartIdx=Util::indexOfBackward(command,"\"",command.size()-1)+1;
165 >    int fileAbsoluteStartIdx=command.lastIndexOf("\"",command.size()-1)+1;
166  
167      return command.remove(0,fileAbsoluteStartIdx);
168   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)