Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KDE Portal for XDG Desktop
Commits
8ef6eb3f
Commit
8ef6eb3f
authored
Feb 24, 2019
by
Jan Grulich
Browse files
Fix selection of multiple files
BUG: 404739
parent
27651ce2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/filechooser.cpp
View file @
8ef6eb3f
...
...
@@ -185,7 +185,7 @@ uint FileChooserPortal::OpenFile(const QDBusObjectPath &handle,
Utils
::
setParentWindow
(
fileDialog
.
data
(),
parent_window
);
fileDialog
->
setWindowTitle
(
title
);
fileDialog
->
setModal
(
modalDialog
);
fileDialog
->
m_fileWidget
->
setMode
(
multipleFiles
?
KFile
::
Mode
::
File
|
KFile
::
Mode
::
ExistingOnly
:
KFile
::
Mode
::
File
s
|
KFile
::
Mode
::
ExistingOnly
);
fileDialog
->
m_fileWidget
->
setMode
(
multipleFiles
?
KFile
::
Mode
::
File
s
|
KFile
::
Mode
::
ExistingOnly
:
KFile
::
Mode
::
File
|
KFile
::
Mode
::
ExistingOnly
);
fileDialog
->
m_fileWidget
->
okButton
()
->
setText
(
!
acceptLabel
.
isEmpty
()
?
acceptLabel
:
i18n
(
"Open"
));
if
(
!
nameFilters
.
isEmpty
())
{
...
...
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