-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 | |||
@@ -459,2 +459,6 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) | |||
459 | bool objIsNotViewport = (object != viewport()); | 459 | bool objIsNotViewport = (object != viewport()); |
460 | bool leftButt = false; | ||
461 | #ifdef DESKTOP_VERSION | ||
462 | leftButt = (me->button() == LeftButton); | ||
463 | #endif | ||
460 | switch (me->type()) { | 464 | switch (me->type()) { |
@@ -469,3 +473,3 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) | |||
469 | mPopupPos = me->globalPos(); | 473 | mPopupPos = me->globalPos(); |
470 | if ( objIsNotViewport ) { | 474 | if ( objIsNotViewport && !leftButt ) { |
471 | KOAgendaItem * tempItem = (KOAgendaItem *)object; | 475 | KOAgendaItem * tempItem = (KOAgendaItem *)object; |