fixed audio mark as read after download

This commit is contained in:
John Preston 2015-05-23 18:57:16 +03:00
parent 7ca4ec1bed
commit f24e3c6192

View File

@ -1369,6 +1369,7 @@ void MainWidget::audioLoadProgress(mtpFileLoader *loader) {
audioVoice()->pauseresume();
} else {
audioVoice()->play(audio);
if (App::main()) App::main()->audioMarkRead(audio);
}
} else {
QPoint pos(QCursor::pos());
@ -1377,6 +1378,7 @@ void MainWidget::audioLoadProgress(mtpFileLoader *loader) {
} else {
psOpenFile(already, audio->openOnSave < 0);
}
if (App::main()) App::main()->audioMarkRead(audio);
}
}
}