-rw-r--r-- | korganizer/koagenda.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index ffa2678..a72e470 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -403,5 +403,4 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) if (object != viewport()) { if (me->button() == RightButton) { - mClickedItem = (KOAgendaItem *)object; if (mClickedItem) { @@ -455,4 +454,5 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) int gx,gy; contentsToGrid(x,y,gx,gy); + if ( object == viewport() ) { if ( mCurrentCellY < mStartCellY +1 ) { //qDebug("mCurrentCellY %d mStartCellY %d ", mCurrentCellY,mStartCellY); @@ -466,4 +466,14 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) blockNewEvent = false; } + } else { + mClickedItem = (KOAgendaItem *)object; + if (mActionItem ) { + endItemAction(); + } + if (mClickedItem) { + selectItem(mClickedItem); + emit showIncidencePopupSignal(mClickedItem->incidence()); + } + } } else if (me->button() == RightButton && block ) { if (object != viewport()) { |