From a2ad68fc48457340fa9efd094fc831da61f4c0b8 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Tue, 6 Nov 2007 22:27:09 -0500 Subject: BUG: disable drag & drop while busy. --- Source/QtDialog/CMakeSetupDialog.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 066bec6..5213908 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -581,6 +581,12 @@ void CMakeSetupDialog::addBinaryPath(const QString& path) void CMakeSetupDialog::dragEnterEvent(QDragEnterEvent* e) { + if(!this->ConfigureButton->isEnabled()) + { + e->ignore(); + return; + } + const QMimeData* dat = e->mimeData(); QList urls = dat->urls(); QString file = urls.count() ? urls[0].toLocalFile() : QString(); @@ -598,6 +604,10 @@ void CMakeSetupDialog::dragEnterEvent(QDragEnterEvent* e) void CMakeSetupDialog::dropEvent(QDropEvent* e) { + if(!this->ConfigureButton->isEnabled()) + { + return; + } const QMimeData* dat = e->mimeData(); QList urls = dat->urls(); QString file = urls.count() ? urls[0].toLocalFile() : QString(); -- cgit v0.12