-rw-r--r-- | korganizer/koagenda.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index b99625c..faddac4 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -457,6 +457,10 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) viewportPos = me->pos(); } bool objIsNotViewport = (object != viewport()); + bool leftButt = false; +#ifdef DESKTOP_VERSION + leftButt = (me->button() == LeftButton); +#endif switch (me->type()) { case QEvent::MouseButtonPress: if (me->button() == LeftButton) { @@ -467,7 +471,7 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) startX = viewportPos.x(); startY = viewportPos.y(); mPopupPos = me->globalPos(); - if ( objIsNotViewport ) { + if ( objIsNotViewport && !leftButt ) { KOAgendaItem * tempItem = (KOAgendaItem *)object; if (mAllDayMode) { if ( tempItem->height() > 10 ) { |