Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konqueror
Commits
f23ed146
Commit
f23ed146
authored
Feb 22, 2022
by
Alexander Lohnau
💬
Browse files
Fix search plugin not showing up in config dialog
parent
3612a4ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/konqextensionmanager.cpp
View file @
f23ed146
...
...
@@ -67,14 +67,15 @@ KonqExtensionManager::KonqExtensionManager(QWidget *parent, KonqMainWindow *main
auto
addPluginForId
=
[
this
](
const
QString
&
pluginId
)
{
QVector
<
KPluginMetaData
>
metaDataList
=
KPluginMetaData
::
findPlugins
(
pluginId
+
QStringLiteral
(
"/kpartplugins"
));
d
->
pluginSelector
->
setConfig
(
KSharedConfig
::
openConfig
(
pluginId
+
QLatin1String
(
"rc"
))
->
group
(
"KParts Plugins"
));
d
->
pluginSelector
->
addPlugins
(
metaDataList
,
i18n
(
"Extensions"
));
};
if
(
activePart
)
{
d
->
pluginSelector
->
setConfig
(
KSharedConfig
::
openConfig
(
activePart
->
metaData
().
pluginId
()
+
QLatin1String
(
"rc"
))
->
group
(
"KParts Plugins"
));
addPluginForId
(
activePart
->
metaData
().
pluginId
());
}
else
{
addP
lugin
ForId
(
QStringLiteral
(
"konqueror
"
));
d
->
p
lugin
Selector
->
setConfig
(
KSharedConfig
::
openConfig
(
QStringLiteral
(
"konquerorrc"
))
->
group
(
"KParts Plugins
"
));
}
addPluginForId
(
QStringLiteral
(
"konqueror"
));
// Always add the plugins from the konqueror namespace
d
->
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Ok
|
QDialogButtonBox
::
Cancel
|
QDialogButtonBox
::
RestoreDefaults
|
QDialogButtonBox
::
Apply
);
QPushButton
*
okButton
=
d
->
buttonBox
->
button
(
QDialogButtonBox
::
Ok
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment