[cmake-commits] clinton committed CMakeSetupDialog.cxx 1.26 1.27

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Dec 12 13:25:26 EST 2007


Update of /cvsroot/CMake/CMake/Source/QtDialog
In directory public:/mounts/ram/cvs-serv23683

Modified Files:
	CMakeSetupDialog.cxx 
Log Message:
BUG:  Fix logic to accept drop events.


Index: CMakeSetupDialog.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/CMakeSetupDialog.cxx,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- CMakeSetupDialog.cxx	6 Dec 2007 19:07:52 -0000	1.26
+++ CMakeSetupDialog.cxx	12 Dec 2007 18:25:24 -0000	1.27
@@ -580,8 +580,8 @@
 
 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::dropEvent(QDropEvent* e)
 {
-  if(this->CurrentState != ReadyConfigure || 
-     this->CurrentState != ReadyGenerate)
+  if(!(this->CurrentState == ReadyConfigure || 
+     this->CurrentState == ReadyGenerate))
     {
     return;
     }



More information about the Cmake-commits mailing list