-rw-r--r-- | korganizer/calendarview.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index a330414..0015bd6 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -3422,17 +3422,26 @@ void CalendarView::setReadOnly(bool readOnly) emit readOnlyChanged(mReadOnly); } } bool CalendarView::isModified() { return mModified; } - +void CalendarView::slotprintSelInc() +{ + if ( currentSelection() == 0 ) { + KMessageBox::sorry(this,i18n("There is nothing selected!")); + return; + } + showIncidence(); + getEventViewerDialog()->print(); + +} void CalendarView::printSetup() { #ifndef KORG_NOPRINTER createPrinter(); mCalPrinter->setupPrinter(); #endif } |