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
KAlarm
Commits
58014676
Commit
58014676
authored
Apr 25, 2012
by
David Jarvie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix return values changed in d6ca392cbe2a728ed68df8ecccae8dc37290eb9b
parent
8b8213c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
functions.cpp
functions.cpp
+2
-2
No files found.
functions.cpp
View file @
58014676
...
...
@@ -2130,10 +2130,10 @@ QString browseFile(const QString& caption, QString& defaultDir, const QString& i
if
(
!
initialFile
.
isEmpty
())
fileDlg
->
setSelection
(
initialFile
);
if
(
fileDlg
->
exec
()
!=
QDialog
::
Accepted
)
return
fileDlg
?
QString
()
:
QString
();
return
fileDlg
?
QString
(
""
)
:
QString
();
// return null only if dialog was deleted
KUrl
url
=
fileDlg
->
selectedUrl
();
if
(
url
.
isEmpty
())
return
QString
(
);
return
QString
(
""
);
// 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