Showing with 4 additions and 1 deletion.
  1. +3 −0 src/datasources/ascii/asciisource.cpp
  2. +1 −1 src/libkst/namedobject.h
3 changes: 3 additions & 0 deletions src/datasources/ascii/asciisource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ void AsciiSource::prepareRead(int count)
_read_count_max = count;
_read_count = 0;
_progress = 0;
_progressSteps = 0;
}

//-------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -497,7 +498,9 @@ int AsciiSource::parseWindowSinglethreaded(QVector<AsciiFileData>& window, int c
Q_ASSERT(sRead + start == window[i].rowBegin());
if (!window[i].read() || window[i].bytesRead() == 0)
return 0;
_progress++;
read += _reader.readFieldFromChunk(window[i], col, v, start, field);
_progress += window.size();
}
return read;
}
Expand Down
2 changes: 1 addition & 1 deletion src/libkst/namedobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct SizeCache {
QString name;
};

void resetNameIndexes();
KSTCORE_EXPORT void resetNameIndexes();

class KSTCORE_EXPORT NamedObject
{
Expand Down