[cmake-commits] clinton committed CMakeSetupDialog.cxx 1.12 1.13

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Nov 6 22:27:11 EST 2007


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

Modified Files:
	CMakeSetupDialog.cxx 
Log Message:
BUG:  disable drag & drop while busy.


Index: CMakeSetupDialog.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/CMakeSetupDialog.cxx,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- CMakeSetupDialog.cxx	7 Nov 2007 02:51:08 -0000	1.12
+++ CMakeSetupDialog.cxx	7 Nov 2007 03:27:09 -0000	1.13
@@ -581,6 +581,12 @@
 
 void CMakeSetupDialog::dragEnterEvent(QDragEnterEvent* e)
 {
+  if(!this->ConfigureButton->isEnabled())
+    {
+    e->ignore();
+    return;
+    }
+
   const QMimeData* dat = e->mimeData();
   QList<QUrl> urls = dat->urls();
   QString file = urls.count() ? urls[0].toLocalFile() : QString();
@@ -598,6 +604,10 @@
 
 void CMakeSetupDialog::dropEvent(QDropEvent* e)
 {
+  if(!this->ConfigureButton->isEnabled())
+    {
+    return;
+    }
   const QMimeData* dat = e->mimeData();
   QList<QUrl> urls = dat->urls();
   QString file = urls.count() ? urls[0].toLocalFile() : QString();



More information about the Cmake-commits mailing list