Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KAlarm
Commits
3dbdbd99
Commit
3dbdbd99
authored
Jul 06, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QStringLiteral
parent
97b7f434
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
functions.cpp
functions.cpp
+1
-1
No files found.
functions.cpp
View file @
3dbdbd99
...
...
@@ -1748,7 +1748,7 @@ QString browseFile(const QString& caption, QString& defaultDir, const QString& i
return
fileDlg
?
QLatin1String
(
""
)
:
QString
();
// return null only if dialog was deleted
KUrl
url
=
fileDlg
->
selectedUrl
();
if
(
url
.
isEmpty
())
return
Q
Latin1
String
(
""
);
// return empty, non-null string
return
QString
Literal
(
""
);
// return empty, non-null string
defaultDir
=
url
.
isLocalFile
()
?
url
.
upUrl
().
toLocalFile
()
:
url
.
directory
();
return
(
mode
&
KFile
::
LocalOnly
)
?
url
.
pathOrUrl
()
:
url
.
prettyUrl
();
}
...
...
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