summaryrefslogtreecommitdiffabout
path: root/kaddressbook/kabcore.cpp
authorzautrix <zautrix>2004-11-08 21:51:06 (UTC)
committer zautrix <zautrix>2004-11-08 21:51:06 (UTC)
commit4e06ab7da7f56f579010e93b1b9009ed9fd6a33e (patch) (side-by-side diff)
treec5a9bc71126dfd136d7d6394675d8d1b3d70d1d1 /kaddressbook/kabcore.cpp
parent91edd790af2bb6c19954638da1e22158382203a0 (diff)
downloadkdepimpi-4e06ab7da7f56f579010e93b1b9009ed9fd6a33e.zip
kdepimpi-4e06ab7da7f56f579010e93b1b9009ed9fd6a33e.tar.gz
kdepimpi-4e06ab7da7f56f579010e93b1b9009ed9fd6a33e.tar.bz2
word fixes
Diffstat (limited to 'kaddressbook/kabcore.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabcore.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp
index d99a9cd..7be5db8 100644
--- a/kaddressbook/kabcore.cpp
+++ b/kaddressbook/kabcore.cpp
@@ -680,7 +680,6 @@ void KABCore::setContactSelected( const QString &uid )
mActionBeamVCard->setEnabled( selected );
mActionWhoAmI->setEnabled( selected );
- mActionCategories->setEnabled( selected );
}
void KABCore::sendMail()
@@ -1013,6 +1012,18 @@ void KABCore::editCategories()
}
void KABCore::setCategories()
{
+
+ QStringList uids;
+ XXPortSelectDialog dlgx( this, false, this );
+ if ( dlgx.exec() )
+ uids = dlgx.uids();
+ else
+ return;
+ if ( uids.isEmpty() )
+ return;
+ // qDebug("count %d ", uids.count());
+
+
KPIM::CategorySelectDialog dlg( KABPrefs::instance(), this, "", true );
if ( !dlg.exec() ) {
message( i18n("Setting categories cancelled") );
@@ -1026,7 +1037,7 @@ void KABCore::setCategories()
message( i18n("Setting categories ... please wait!") );
QStringList categories = dlg.selectedCategories();
- QStringList uids = mViewManager->selectedUids();
+ //QStringList uids = mViewManager->selectedUids();
QStringList::Iterator it;
for ( it = uids.begin(); it != uids.end(); ++it ) {
KABC::Addressee addr = mAddressBook->findByUid( *it );
@@ -2108,6 +2119,10 @@ void KABCore::addActionsManually()
mActionWhoAmI->plug( settingsMenu );
mActionEditCategories->plug( settingsMenu );
+ mActionEditCategories->plug( changeMenu );
+ mActionCategories->plug( changeMenu );
+ mActionManageCategories->plug( changeMenu );
+
mActionCategories->plug( settingsMenu );
mActionManageCategories->plug( settingsMenu );