Fix crash when we open the same file at the same windows twice.
This commit is contained in:
parent
807183b2ce
commit
edee237fb8
|
@ -149,9 +149,13 @@ auto VPMainWindow::LoadFile(QString path) -> bool
|
||||||
if (w != list.end())
|
if (w != list.end())
|
||||||
{
|
{
|
||||||
(*w)->activateWindow();
|
(*w)->activateWindow();
|
||||||
|
if (this != *w)
|
||||||
|
{
|
||||||
close();
|
close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
VlpCreateLock(lock, path);
|
VlpCreateLock(lock, path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user