BUG: disable drag & drop while busy.

This commit is contained in:
Clinton Stimpson 2007-11-06 22:27:09 -05:00
parent 07d25b6a5f
commit a2ad68fc48
1 changed files with 10 additions and 0 deletions

View File

@ -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();