diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2007-11-07 03:27:09 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2007-11-07 03:27:09 (GMT) |
commit | a2ad68fc48457340fa9efd094fc831da61f4c0b8 (patch) | |
tree | 9508b241ef585b55eb5c825cc2e5398870c354f6 /Source | |
parent | 07d25b6a5f42550298dc4f1cdbf8f00d169f59cf (diff) | |
download | CMake-a2ad68fc48457340fa9efd094fc831da61f4c0b8.zip CMake-a2ad68fc48457340fa9efd094fc831da61f4c0b8.tar.gz CMake-a2ad68fc48457340fa9efd094fc831da61f4c0b8.tar.bz2 |
BUG: disable drag & drop while busy.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
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<QUrl> 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<QUrl> urls = dat->urls(); QString file = urls.count() ? urls[0].toLocalFile() : QString(); |