Changeset 1093 for s10k/Vago/libs/DropTableWidget
- Timestamp:
- Dec 30, 2017, 2:57:32 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
s10k/Vago/libs/DropTableWidget/droptablewidget.cpp
r1061 r1093 146 146 147 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); 149 150 150 151 fileCommand.remove(0,fileAbsoluteStartIdx); 151 int fileAbsoluteEndIdx=fileCommand.indexOf('"',1); //1 to find the end quoate and not the start152 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); 154 156 } 155 157 … … 161 163 command.remove(fileAbsoluteEndIdx,command.size()-1); 162 164 163 int fileAbsoluteStartIdx= Util::indexOfBackward(command,"\"",command.size()-1)+1;165 int fileAbsoluteStartIdx=command.lastIndexOf("\"",command.size()-1)+1; 164 166 165 167 return command.remove(0,fileAbsoluteStartIdx);
Note:
See TracChangeset
for help on using the changeset viewer.