summaryrefslogtreecommitdiffstats
path: root/korganizer/importdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-01 00:37:02 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-01 00:37:02 +0000
commitcc29364f06178f8f6b457384f2ec37a042bd9d43 (patch)
tree7c77a3184c698bbf9d98cef09fb1ba8124daceba /korganizer/importdialog.cpp
parent4f6c584bacc8c3c694228f36ada3de77a76614a6 (diff)
downloadtdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.tar.gz
tdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.zip
* 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
Diffstat (limited to 'korganizer/importdialog.cpp')
-rw-r--r--korganizer/importdialog.cpp10
1 files changed, 5 insertions, 5 deletions
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 {