BUG: Fix logic to accept drop events.

This commit is contained in:
Clinton Stimpson 2007-12-12 13:25:24 -05:00
parent b24b859a93
commit 4bb6141bdc
1 changed files with 4 additions and 4 deletions

View File

@ -580,8 +580,8 @@ void CMakeSetupDialog::addBinaryPath(const QString& path)
void CMakeSetupDialog::dragEnterEvent(QDragEnterEvent* e)
{
if(this->CurrentState != ReadyConfigure ||
this->CurrentState != ReadyGenerate)
if(!(this->CurrentState == ReadyConfigure ||
this->CurrentState == ReadyGenerate))
{
e->ignore();
return;
@ -604,8 +604,8 @@ void CMakeSetupDialog::dragEnterEvent(QDragEnterEvent* e)
void CMakeSetupDialog::dropEvent(QDropEvent* e)
{
if(this->CurrentState != ReadyConfigure ||
this->CurrentState != ReadyGenerate)
if(!(this->CurrentState == ReadyConfigure ||
this->CurrentState == ReadyGenerate))
{
return;
}