Release file lock if reading failed.
This commit is contained in:
parent
7d16cae718
commit
005d5fdafd
|
@ -253,6 +253,7 @@ auto VPMainWindow::LoadFile(QString path) -> bool
|
|||
{
|
||||
qCCritical(pWindow, "%s\n\n%s\n\n%s", qUtf8Printable(tr("File error.")),
|
||||
qUtf8Printable(e.ErrorMessage()), qUtf8Printable(e.DetailedInformation()));
|
||||
lock.reset();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user