From d9255cd129d42abf08efc11ff9b29e831e05e803 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 26 Jun 2005 12:35:09 +0000 Subject: fixx --- 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 ) { -- cgit v0.9.0.2