244 | | if (CurrentMessage() && CurrentMessage()->FindBool("shortcut")) |
| 244 | if (CurrentMessage() && CurrentMessage()->FindBool("shortcut")) { |
| 245 | // but allow quitting to hide fSettingsWindow |
| 246 | int32 index = 0; |
| 247 | BWindow *window = NULL; |
| 248 | while ((window = WindowAt(index++)) != NULL) { |
| 249 | if (window == fSettingsWindow) { |
| 250 | if (fSettingsWindow->Lock()) { |
| 251 | if (!fSettingsWindow->IsHidden() |
| 252 | && fSettingsWindow->IsActive()) |
| 253 | fSettingsWindow->Hide(); |
| 254 | fSettingsWindow->Unlock(); |
| 255 | } |
| 256 | break; |
| 257 | } |
| 258 | } |