From b54536b20d58ea1795e0cf9de1a925670e51c4b9 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Sun, 14 Apr 2013 01:53:43 -0400 Subject: [PATCH] Don't need to check if Lock() succeeded here, I don't anywhere else. --- src/apps/deskbar/BarApp.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/apps/deskbar/BarApp.cpp b/src/apps/deskbar/BarApp.cpp index f6c604ea6a..5e354517b7 100644 --- a/src/apps/deskbar/BarApp.cpp +++ b/src/apps/deskbar/BarApp.cpp @@ -130,10 +130,9 @@ TBarApp::TBarApp() // Call UpdatePlacement() after the window is shown because expanded // apps need to resize the window. - if (fBarWindow->Lock()) { - fBarView->UpdatePlacement(); - fBarWindow->Unlock(); - } + fBarWindow->Lock(); + fBarView->UpdatePlacement(); + fBarWindow->Unlock(); // this messenger now targets the barview instead of the // statusview so that all additions to the tray