-rw-r--r-- | kaddressbook/kabcore.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index a6d722d..68d3d2d 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -1006,13 +1006,14 @@ void KABCore::openConfigDialog() | |||
1006 | connect( ConfigureDialog, SIGNAL( applyClicked() ), | 1006 | connect( ConfigureDialog, SIGNAL( applyClicked() ), |
1007 | this, SLOT( configurationChanged() ) ); | 1007 | this, SLOT( configurationChanged() ) ); |
1008 | connect( ConfigureDialog, SIGNAL( okClicked() ), | 1008 | connect( ConfigureDialog, SIGNAL( okClicked() ), |
1009 | this, SLOT( configurationChanged() ) ); | 1009 | this, SLOT( configurationChanged() ) ); |
1010 | saveSettings(); | 1010 | saveSettings(); |
1011 | ConfigureDialog->showMaximized(); | 1011 | ConfigureDialog->showMaximized(); |
1012 | ConfigureDialog->exec(); | 1012 | if ( ConfigureDialog->exec() ) |
1013 | KMessageBox::information( this, i18n("If you configured \nExtensions,\nplease restart!\n") ); | ||
1013 | delete ConfigureDialog; | 1014 | delete ConfigureDialog; |
1014 | } | 1015 | } |
1015 | 1016 | ||
1016 | void KABCore::openLDAPDialog() | 1017 | void KABCore::openLDAPDialog() |
1017 | { | 1018 | { |
1018 | #ifndef KAB_EMBEDDED | 1019 | #ifndef KAB_EMBEDDED |
@@ -1358,20 +1359,21 @@ void KABCore::initActions() | |||
1358 | 1359 | ||
1359 | mActionConfigShortcuts = new KAction( i18n( "Configure S&hortcuts..." ), "configure_shortcuts", 0, | 1360 | mActionConfigShortcuts = new KAction( i18n( "Configure S&hortcuts..." ), "configure_shortcuts", 0, |
1360 | this, SLOT( configureKeyBindings() ), actionCollection(), | 1361 | this, SLOT( configureKeyBindings() ), actionCollection(), |
1361 | "kaddressbook_configure_shortcuts" ); | 1362 | "kaddressbook_configure_shortcuts" ); |
1362 | #ifdef KAB_EMBEDDED | 1363 | #ifdef KAB_EMBEDDED |
1363 | mActionConfigureToolbars = KStdAction::configureToolbars( this, SLOT( mMainWindow->configureToolbars() ), actionCollection() ); | 1364 | mActionConfigureToolbars = KStdAction::configureToolbars( this, SLOT( mMainWindow->configureToolbars() ), actionCollection() ); |
1365 | mActionConfigureToolbars->setEnabled( false ); | ||
1364 | #endif //KAB_EMBEDDED | 1366 | #endif //KAB_EMBEDDED |
1365 | 1367 | ||
1366 | } else { | 1368 | } else { |
1367 | mActionConfigKAddressbook = KStdAction::preferences( this, SLOT( openConfigDialog() ), actionCollection() ); | 1369 | mActionConfigKAddressbook = KStdAction::preferences( this, SLOT( openConfigDialog() ), actionCollection() ); |
1368 | 1370 | ||
1369 | mActionKeyBindings = KStdAction::keyBindings( this, SLOT( configureKeyBindings() ), actionCollection() ); | 1371 | mActionKeyBindings = KStdAction::keyBindings( this, SLOT( configureKeyBindings() ), actionCollection() ); |
1370 | } | 1372 | } |
1371 | 1373 | ||
1372 | mActionJumpBar = new KToggleAction( i18n( "Show Jump Bar" ), 0, 0, | 1374 | mActionJumpBar = new KToggleAction( i18n( "Show Jump Bar" ), 0, 0, |
1373 | actionCollection(), "options_show_jump_bar" ); | 1375 | actionCollection(), "options_show_jump_bar" ); |
1374 | connect( mActionJumpBar, SIGNAL( toggled( bool ) ), SLOT( setJumpButtonBarVisible( bool ) ) ); | 1376 | connect( mActionJumpBar, SIGNAL( toggled( bool ) ), SLOT( setJumpButtonBarVisible( bool ) ) ); |
1375 | 1377 | ||
1376 | mActionDetails = new KToggleAction( i18n( "Show Details" ), 0, 0, | 1378 | mActionDetails = new KToggleAction( i18n( "Show Details" ), 0, 0, |
1377 | actionCollection(), "options_show_details" ); | 1379 | actionCollection(), "options_show_details" ); |
@@ -1593,12 +1595,13 @@ void KABCore::configureKeyBindings() | |||
1593 | void KABCore::configureResources() | 1595 | void KABCore::configureResources() |
1594 | { | 1596 | { |
1595 | KRES::KCMKResources dlg( this, "" , 0 ); | 1597 | KRES::KCMKResources dlg( this, "" , 0 ); |
1596 | 1598 | ||
1597 | if ( !dlg.exec() ) | 1599 | if ( !dlg.exec() ) |
1598 | return; | 1600 | return; |
1601 | KMessageBox::information( this, i18n("Please restart to get the \nchanged resources (re)loaded!\n") ); | ||
1599 | } | 1602 | } |
1600 | #endif //KAB_EMBEDDED | 1603 | #endif //KAB_EMBEDDED |
1601 | 1604 | ||
1602 | 1605 | ||
1603 | 1606 | ||
1604 | #ifndef KAB_EMBEDDED | 1607 | #ifndef KAB_EMBEDDED |