LaunchBox: remove redundant Locking. Thanks Stippi!

This commit is contained in:
Philippe Saint-Pierre
2012-12-13 19:38:08 -05:00
parent bafbb92901
commit 8a24526e3f
+1 -3
View File
@@ -91,7 +91,7 @@ MainWindow::QuitRequested()
padWindowCount++; padWindowCount++;
} }
bool canClose = true; bool canClose = true;
if (Lock()) {
if (padWindowCount == 1) { if (padWindowCount == 1) {
be_app->PostMessage(B_QUIT_REQUESTED); be_app->PostMessage(B_QUIT_REQUESTED);
canClose = false; canClose = false;
@@ -104,8 +104,6 @@ MainWindow::QuitRequested()
if (alert->Go() == 1) if (alert->Go() == 1)
canClose = false; canClose = false;
} }
Unlock();
}
return canClose; return canClose;
} }