Ticket #254: 20070816 - Ticket 254b.diff
File 20070816 - Ticket 254b.diff, 1.1 KB (added by , 17 years ago) |
---|
-
src/preferences/sounds/HWindow.cpp
139 139 ,new BMessage(M_STOP_MESSAGE) 140 140 ,B_FOLLOW_RIGHT | B_FOLLOW_TOP); 141 141 button->ResizeToPreferred(); 142 button->SetEnabled(false); 142 143 button->MoveTo(box->Bounds().right - button->Bounds().Width() - 15, rect.top); 143 144 box->AddChild(button); 144 145 … … 153 154 ,new BMessage(M_PLAY_MESSAGE) 154 155 ,B_FOLLOW_RIGHT | B_FOLLOW_TOP); 155 156 button->ResizeToPreferred(); 157 button->SetEnabled(false); 156 158 button->MoveTo(rect.left - button->Bounds().Width() - 15, rect.top); 157 159 box->AddChild(button); 158 160 … … 408 410 409 411 if(!menufield) 410 412 return; 413 411 414 if(sel >=0) { 412 415 menufield->SetEnabled(true); 413 button->SetEnabled(true); 416 417 HEventItem *item = cast_as(fEventList->ItemAt(sel),HEventItem); 418 const char* path = item->Path(); 419 if (path && strcmp(path, "")) 420 button->SetEnabled(true); 421 else 422 button->SetEnabled(false); 414 423 } else { 415 424 menufield->SetEnabled(false); 416 425 button->SetEnabled(false);