X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/49c5ad320f16383aed85e16a273519844978e9c9..e7340e12904749e2625f25fb858f642d7bfce8f5:/src/mvc/delegate.cpp diff --git a/src/mvc/delegate.cpp b/src/mvc/delegate.cpp index 406e490..8e25929 100644 --- a/src/mvc/delegate.cpp +++ b/src/mvc/delegate.cpp @@ -320,14 +320,13 @@ Delegate::ControlId Delegate::whichControlClicked(const QModelIndex &aIndex, con { return id; } - else - { - if ((mControls[id]->drawRect(static_cast(parent())->visualRect(aIndex)).contains(aPoint)) + else if ((mControls[id]->drawRect(static_cast(parent())->visualRect(aIndex)).contains(aPoint)) && (mControls[id]->hasConflict)) - { + { + qDebug() << "tengo conflicto"; return id; - } } + } return ControlNone;