Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
kdelibs4
patch-r904442.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File patch-r904442.diff of Package kdelibs4
Subject: fix klineedit Default completion entry From: wstephenson@suse.de Bug: Patch-upstream: 904442 --- kdeui/widgets/klineedit.cpp (revision 904441) +++ kdeui/widgets/klineedit.cpp (revision 904442) @@ -1140,14 +1140,16 @@ QMenu* KLineEdit::createStandardContextM d->shortAutoCompletionAction->setEnabled( !d->disableCompletionMap[ KGlobalSettings::CompletionMan ] ); d->popupAutoCompletionAction->setEnabled( !d->disableCompletionMap[ KGlobalSettings::CompletionPopupAuto ] ); - KGlobalSettings::Completion mode = completionMode(); + const KGlobalSettings::Completion mode = completionMode(); d->noCompletionAction->setChecked( mode == KGlobalSettings::CompletionNone ); d->shellCompletionAction->setChecked( mode == KGlobalSettings::CompletionShell ); d->popupCompletionAction->setChecked( mode == KGlobalSettings::CompletionPopup ); d->autoCompletionAction->setChecked( mode == KGlobalSettings::CompletionAuto ); d->shortAutoCompletionAction->setChecked( mode == KGlobalSettings::CompletionMan ); d->popupAutoCompletionAction->setChecked( mode == KGlobalSettings::CompletionPopupAuto ); - if ( mode != KGlobalSettings::completionMode() ) + + const KGlobalSettings::Completion defaultMode = KGlobalSettings::completionMode(); + if ( mode != defaultMode && !d->disableCompletionMap[ defaultMode ] ) { subMenu->addSeparator(); d->defaultAction = subMenu->addAction( i18nc("@item:inmenu Text Completion", "Default") ); Index: kdeui/widgets/klineedit.cpp ===================================================================
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor