Add parentheses to silence warning. (and for clarity)

Originally committed to SVN as r3458.
This commit is contained in:
Amar Takhar 2009-09-02 08:23:18 +00:00
parent 24c7ceb0ab
commit a16c8ed838
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ DialogDetachedVideo::DialogDetachedVideo(FrameMain *par, const wxSize &initialDi
if (Options.AsBool(_T("Detached video maximized"))) Maximize();
// Set obscure stuff
SetExtraStyle(GetExtraStyle() & (~wxWS_EX_BLOCK_EVENTS) | wxWS_EX_PROCESS_UI_UPDATES);
SetExtraStyle((GetExtraStyle() & ~wxWS_EX_BLOCK_EVENTS) | wxWS_EX_PROCESS_UI_UPDATES);
// Set title
wxFileName fn(VideoContext::Get()->videoName);

View File

@ -137,7 +137,7 @@ void IdleFieldHandler::SetFocus() {
///
void IdleFieldHandler::KillFocus() {
bool modify = false;
if (text && text->GetValue().IsEmpty() || box && box->GetValue().IsEmpty()) modify = true;
if (text && (text->GetValue().IsEmpty() || box) && box->GetValue().IsEmpty()) modify = true;
if (modify) {
// Prepare