Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
Akonadi Contacts
Commits
e587fa63
Commit
e587fa63
authored
Jan 08, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor optimization
parent
2f8ff889
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/editor/addresseditor/iconnamecache.cpp
src/editor/addresseditor/iconnamecache.cpp
+3
-2
No files found.
src/editor/addresseditor/iconnamecache.cpp
View file @
e587fa63
...
...
@@ -44,8 +44,9 @@ QString IconNameCache::iconPath(const QString &name, int size) const
entry
.
fileName
=
name
;
entry
.
size
=
size
;
if
(
mCachedEntries
.
contains
(
entry
))
{
return
mCachedEntries
.
value
(
entry
);
const
QString
path
=
mCachedEntries
.
value
(
entry
);
if
(
!
path
.
isEmpty
())
{
return
path
;
}
const
QString
fileName
=
KIconLoader
::
global
()
->
iconPath
(
name
,
size
);
...
...
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