LaunchBox: Add missing curly brackets (CID #991345)

This commit is contained in:
Philippe Saint-Pierre 2014-03-02 15:36:18 -05:00
parent 34a7841a39
commit ff5711ee19

View File

@ -454,10 +454,11 @@ MainWindow::LoadSettings(const BMessage* message)
// store workspace setting
bool showOnAllWorkspaces;
if (message->FindBool("all workspaces", &showOnAllWorkspaces) == B_OK)
if (message->FindBool("all workspaces", &showOnAllWorkspaces) == B_OK) {
fShowOnAllWorkspaces = showOnAllWorkspaces;
SetWorkspaces(showOnAllWorkspaces
? B_ALL_WORKSPACES : 1L << current_workspace());
}
if (!fShowOnAllWorkspaces) {
uint32 workspaces;
if (message->FindInt32("workspaces", (int32*)&workspaces) == B_OK)