BUG: disable drag & drop while busy.
This commit is contained in:
parent
07d25b6a5f
commit
a2ad68fc48
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue