Release file lock if reading failed.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user