Diffstat (limited to 'core/pim/datebook/datebookdayallday.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookdayallday.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/datebook/datebookdayallday.cpp b/core/pim/datebook/datebookdayallday.cpp index 5b40246..27fce44 100644 --- a/core/pim/datebook/datebookdayallday.cpp +++ b/core/pim/datebook/datebookdayallday.cpp | |||
@@ -183,25 +183,25 @@ void DatebookAlldayDisp::beam_single_event() | |||
183 | m_Event.setEnd ( end ); | 183 | m_Event.setEnd ( end ); |
184 | emit beamMe( m_Event ); | 184 | emit beamMe( m_Event ); |
185 | } | 185 | } |
186 | } | 186 | } |
187 | 187 | ||
188 | void DatebookAlldayDisp::mousePressEvent(QMouseEvent*e) | 188 | void DatebookAlldayDisp::mousePressEvent(QMouseEvent*e) |
189 | { | 189 | { |
190 | Event ev = m_Ev.event(); | 190 | Event ev = m_Ev.event(); |
191 | QColor b = backgroundColor(); | 191 | QColor b = backgroundColor(); |
192 | setBackgroundColor(green); | 192 | setBackgroundColor(green); |
193 | update(); | 193 | update(); |
194 | QPopupMenu m; | 194 | QPopupMenu m; |
195 | if (!m_holiday) { | 195 | if (ev.isValidUid()) { |
196 | m.insertItem( DateBookDayWidget::tr( "Edit" ), 1 ); | 196 | m.insertItem( DateBookDayWidget::tr( "Edit" ), 1 ); |
197 | m.insertItem( DateBookDayWidget::tr( "Duplicate" ), 4 ); | 197 | m.insertItem( DateBookDayWidget::tr( "Duplicate" ), 4 ); |
198 | m.insertItem( DateBookDayWidget::tr( "Delete" ), 2 ); | 198 | m.insertItem( DateBookDayWidget::tr( "Delete" ), 2 ); |
199 | if(Ir::supported()) m.insertItem( DateBookDayWidget::tr( "Beam" ), 3 ); | 199 | if(Ir::supported()) m.insertItem( DateBookDayWidget::tr( "Beam" ), 3 ); |
200 | if(Ir::supported() && m_Ev.event().doRepeat() ) m.insertItem( DateBookDayWidget::tr( "Beam this occurence"), 5 ); | 200 | if(Ir::supported() && m_Ev.event().doRepeat() ) m.insertItem( DateBookDayWidget::tr( "Beam this occurence"), 5 ); |
201 | } | 201 | } |
202 | m.insertItem( tr( "Info"),6); | 202 | m.insertItem( tr( "Info"),6); |
203 | int r = m.exec( e->globalPos() ); | 203 | int r = m.exec( e->globalPos() ); |
204 | setBackgroundColor(b); | 204 | setBackgroundColor(b); |
205 | update(); | 205 | update(); |
206 | switch (r) { | 206 | switch (r) { |
207 | case 1: | 207 | case 1: |