From 4bb6141bdc476d3508359fa6f5291d50baab0526 Mon Sep 17 00:00:00 2001
From: Clinton Stimpson <clinton@elemtech.com>
Date: Wed, 12 Dec 2007 13:25:24 -0500
Subject: BUG:  Fix logic to accept drop events.

---
 Source/QtDialog/CMakeSetupDialog.cxx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index 65e7890..3c57cf5 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -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;
     }
-- 
cgit v0.12