| 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){ |
| 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 |
|
} |