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
M
Milou
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
2
Merge Requests
2
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
Milou
Commits
18a00828
Commit
18a00828
authored
Dec 03, 2017
by
Kai Uwe Broulik
🍇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ResultDelegate] Silence i18n when ListView.section is empty
For whatever reason this can happen...
parent
20375964
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
lib/qml/ResultDelegate.qml
lib/qml/ResultDelegate.qml
+12
-1
No files found.
lib/qml/ResultDelegate.qml
View file @
18a00828
...
...
@@ -46,7 +46,18 @@ MouseArea {
Accessible.role
:
Accessible
.
ListItem
Accessible.name
:
displayLabel
.
text
Accessible.description
:
subtextLabel
.
text
.
length
>
0
?
i18nd
(
"
milou
"
,
"
%1, in category %2
"
,
subtextLabel
.
text
,
ListView
.
section
)
:
i18nd
(
"
milou
"
,
"
in category %1
"
,
ListView
.
section
)
Accessible.description
:
{
var
section
=
ListView
.
section
;
if
(
!
section
)
{
return
""
;
}
var
subtext
=
subtextLabel
.
text
;
if
(
subtext
.
length
>
0
)
{
return
i18nd
(
"
milou
"
,
"
%1, in category %2
"
,
subtext
,
section
);
}
else
{
return
i18nd
(
"
milou
"
,
"
in category %1
"
,
section
);
}
}
property
bool
__pressed
:
false
property
int
__pressX
:
-
1
...
...
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