summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2007-12-12 18:25:24 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2007-12-12 18:25:24 (GMT)
commit4bb6141bdc476d3508359fa6f5291d50baab0526 (patch)
treef38576ee4db6acfd3fc9f92554c59f2d5b8ac302 /Source/QtDialog
parentb24b859a93bf9c42dcd094b81d035744638a2855 (diff)
downloadCMake-4bb6141bdc476d3508359fa6f5291d50baab0526.zip
CMake-4bb6141bdc476d3508359fa6f5291d50baab0526.tar.gz
CMake-4bb6141bdc476d3508359fa6f5291d50baab0526.tar.bz2
BUG: Fix logic to accept drop events.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx8
1 files 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;
}