diff --git a/src/app/puzzle/vpmainwindow.cpp b/src/app/puzzle/vpmainwindow.cpp index 3878952a8..415b45abe 100644 --- a/src/app/puzzle/vpmainwindow.cpp +++ b/src/app/puzzle/vpmainwindow.cpp @@ -149,8 +149,12 @@ auto VPMainWindow::LoadFile(QString path) -> bool if (w != list.end()) { (*w)->activateWindow(); - close(); - return false; + if (this != *w) + { + close(); + return false; + } + return true; } VlpCreateLock(lock, path);