Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
71d06e3c
Commit
71d06e3c
authored
Feb 01, 2018
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flatpak: don't show full url, just the hostname
BUG: 389714
parent
856ff718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
...iscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp
+2
-2
No files found.
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
Markdown
is supported
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