BUG: Fix logic to accept drop events.
This commit is contained in:
parent
b24b859a93
commit
4bb6141bdc
@ -580,8 +580,8 @@ void CMakeSetupDialog::addBinaryPath(const QString& path)
|
|||||||
|
|
||||||
void CMakeSetupDialog::dragEnterEvent(QDragEnterEvent* e)
|
void CMakeSetupDialog::dragEnterEvent(QDragEnterEvent* e)
|
||||||
{
|
{
|
||||||
if(this->CurrentState != ReadyConfigure ||
|
if(!(this->CurrentState == ReadyConfigure ||
|
||||||
this->CurrentState != ReadyGenerate)
|
this->CurrentState == ReadyGenerate))
|
||||||
{
|
{
|
||||||
e->ignore();
|
e->ignore();
|
||||||
return;
|
return;
|
||||||
@ -604,8 +604,8 @@ void CMakeSetupDialog::dragEnterEvent(QDragEnterEvent* e)
|
|||||||
|
|
||||||
void CMakeSetupDialog::dropEvent(QDropEvent* e)
|
void CMakeSetupDialog::dropEvent(QDropEvent* e)
|
||||||
{
|
{
|
||||||
if(this->CurrentState != ReadyConfigure ||
|
if(!(this->CurrentState == ReadyConfigure ||
|
||||||
this->CurrentState != ReadyGenerate)
|
this->CurrentState == ReadyGenerate))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user