Ignore:
Timestamp:
Dec 30, 2017, 2:57:32 PM (7 years ago)
Author:
s10k
Message:

Vago 1.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • s10k/Vago/libs/DropTableWidget/droptablewidget.cpp

    r1061 r1093  
    146146
    147147    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);
    149150
    150151    fileCommand.remove(0,fileAbsoluteStartIdx);
    151     int fileAbsoluteEndIdx=fileCommand.indexOf('"',1); //1 to find the end quoate and not the start
    152152
    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);
    154156}
    155157
     
    161163    command.remove(fileAbsoluteEndIdx,command.size()-1);
    162164
    163     int fileAbsoluteStartIdx=Util::indexOfBackward(command,"\"",command.size()-1)+1;
     165    int fileAbsoluteStartIdx=command.lastIndexOf("\"",command.size()-1)+1;
    164166
    165167    return command.remove(0,fileAbsoluteStartIdx);
Note: See TracChangeset for help on using the changeset viewer.