{
}
-bool WavPackDecoder::decode(const QString &sourceFile, const QString &outputFile, volatile bool *abortFlag)
+bool WavPackDecoder::decode(const QString &sourceFile, const QString &outputFile, QAtomicInt &abortFlag)
{
QProcess process;
QStringList args;
while(process.state() != QProcess::NotRunning)
{
- if(*abortFlag)
+ if(checkFlag(abortFlag))
{
process.kill();
bAborted = true;