From b7996a25adab32e6f2e4d278a9d9801ad66f90c7 Mon Sep 17 00:00:00 2001 From: alwin Date: Fri, 18 Mar 2005 12:49:14 +0000 Subject: made plugins configureable, eg, if them will load or not (or switch on/off at runtime) events generated from plugins will not editable and so on (check for a wrong Uid) so them are just text inside datebook. --- (limited to 'core/pim/datebook/datebookweeklst.cpp') diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp index b0e78f1..3c871ea 100644 --- a/core/pim/datebook/datebookweeklst.cpp +++ b/core/pim/datebook/datebookweeklst.cpp @@ -215,7 +215,12 @@ void DateBookWeekLstEvent::beamMe() } void DateBookWeekLstEvent::mousePressEvent( QMouseEvent *e ) { + if (!event.event().isValidUid()) { + // this is just such a holiday event. + return; + } popmenue = new QPopupMenu; + popmenue->insertItem( tr( "Edit" ), this, SLOT(editMe())); popmenue->insertItem( tr( "Duplicate" ), this, SLOT(duplicateMe())); popmenue->insertItem( tr( "Delete" ), this, SLOT(deleteMe())); -- cgit v0.9.0.2