From cc29364f06178f8f6b457384f2ec37a042bd9d43 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 1 Sep 2010 00:37:02 +0000 Subject: * Massive set of changes to bring in all fixes and enhancements from the Enterprise PIM branch * Ensured that the Trinity changes were applied on top of those enhancements, and any redundancy removed * Added journal read support to the CalDAV resource * Fixed CalDAV resource to use events URL for tasks and journals when separate URL checkbox unchecked git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1170461 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/importdialog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'korganizer/importdialog.cpp') diff --git a/korganizer/importdialog.cpp b/korganizer/importdialog.cpp index f1181225d..5f4dce6a5 100644 --- a/korganizer/importdialog.cpp +++ b/korganizer/importdialog.cpp @@ -37,15 +37,15 @@ using namespace KCal; -ImportDialog::ImportDialog( const KURL &url, TQWidget *parent ) - : KDialogBase( Plain, i18n("Import Calendar"), Ok | Cancel, Ok, parent, +ImportDialog::ImportDialog( const KURL &url, TQWidget *parent, bool isPart ) + : KDialogBase( Plain, i18n("Import Calendar/Event"), Ok | Cancel, Ok, parent, 0, true, true ), mUrl( url ) { TQFrame *topFrame = plainPage(); TQVBoxLayout *topLayout = new TQVBoxLayout( topFrame, 0, spacingHint() ); - TQString txt = i18n("Import calendar at '%1' into KOrganizer.") + TQString txt = i18n("Import calendar/event at '%1' into KOrganizer.") .arg( mUrl.prettyURL() ); topLayout->addWidget( new TQLabel( txt, topFrame ) ); @@ -59,7 +59,7 @@ ImportDialog::ImportDialog( const KURL &url, TQWidget *parent ) mMergeButton = new TQRadioButton( i18n("Merge into existing calendar"), radioBox ); - mOpenButton = new TQRadioButton( i18n("Open in separate window"), radioBox ); + mOpenButton = isPart ? 0 : new TQRadioButton( i18n("Open in separate window"), radioBox ); mAddButton->setChecked( true ); } @@ -77,7 +77,7 @@ void ImportDialog::slotOk() } else if ( mMergeButton->isChecked() ) { // emit a signal to action manager to merge mUrl into the current calendar emit openURL( mUrl, true ); - } else if ( mOpenButton->isChecked() ) { + } else if ( mOpenButton && mOpenButton->isChecked() ) { // emit a signal to the action manager to open mUrl in a separate window emit newWindow( mUrl ); } else { -- cgit v1.2.1