]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/mvc/delegate.cpp
Conference map
[toast/confclerk.git] / src / mvc / delegate.cpp
index 406e490c995950e01ce777dbff2dea47570c8880..8e25929866f99fa6a900fd89776ce125eab248dd 100644 (file)
@@ -320,14 +320,13 @@ Delegate::ControlId Delegate::whichControlClicked(const QModelIndex &aIndex, con
         {
             return id;
         }
-        else
-        {
-            if ((mControls[id]->drawRect(static_cast<QTreeView*>(parent())->visualRect(aIndex)).contains(aPoint))
+        else if ((mControls[id]->drawRect(static_cast<QTreeView*>(parent())->visualRect(aIndex)).contains(aPoint))
             && (mControls[id]->hasConflict))
-            {
+        {
+            qDebug() << "tengo conflicto";
             return id;
-            }
         }
+
     }
 
     return ControlNone;