Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
71d06e3c
Commit
71d06e3c
authored
Feb 01, 2018
by
Aleix Pol Gonzalez
🐧
Browse files
Flatpak: don't show full url, just the hostname
BUG: 389714
parent
856ff718
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
View file @
71d06e3c
...
...
@@ -195,8 +195,8 @@ FlatpakRemote * FlatpakSourcesBackend::installSource(FlatpakResource *resource)
void
FlatpakSourcesBackend
::
addRemote
(
FlatpakRemote
*
remote
,
FlatpakInstallation
*
installation
)
{
const
QString
id
=
QString
::
fromUtf8
(
flatpak_remote_get_name
(
remote
));
const
Q
String
remoteUrl
=
QString
::
fromUtf8
(
flatpak_remote_get_url
(
remote
));
const
QString
title
=
i18nc
(
"description (url)"
,
"%1 (%2)"
,
QString
::
fromUtf8
(
flatpak_remote_get_title
(
remote
)),
remoteUrl
);
const
Q
Url
remoteUrl
(
QString
::
fromUtf8
(
flatpak_remote_get_url
(
remote
))
)
;
const
QString
title
=
i18nc
(
"description (url)"
,
"%1 (%2)"
,
QString
::
fromUtf8
(
flatpak_remote_get_title
(
remote
)),
remoteUrl
.
host
()
);
for
(
QAction
*
action
:
actions
())
{
if
(
action
->
toolTip
()
==
id
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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