Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Integration
Commits
08001333
Commit
08001333
authored
Oct 22, 2020
by
Laurent Montel
Browse files
Now it depends against new version. Old code can be removed
parent
2984a407
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/platformtheme/kdeplatformfiledialoghelper.cpp
View file @
08001333
...
...
@@ -424,12 +424,6 @@ QUrl KDEPlatformFileDialogHelper::directory() const
void
KDEPlatformFileDialogHelper
::
selectFile
(
const
QUrl
&
filename
)
{
// This is called once by QFileDialogPrivate::init -> QFileDialog::selectUrl -> QFileDialogPrivate::selectFile_sys
// and then again by selectFile in the QFileDialog constructor, with a wrong value for remote URLs, until the Qt 5.11.2 fix.
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
if
(
m_fileSelected
&&
!
m_dialogInitialized
)
return
;
#endif
m_dialog
->
selectFile
(
filename
);
m_fileSelected
=
true
;
}
...
...
src/platformtheme/kdirselectdialog.cpp
View file @
08001333
...
...
@@ -147,11 +147,7 @@ void KDirSelectDialog::Private::slotMkdir()
bool
exists
=
false
;
QUrl
folderurl
(
m_parent
->
url
());
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const
QStringList
dirs
=
directory
.
split
(
QLatin1Char
(
'/'
),
QString
::
SkipEmptyParts
);
#else
const
QStringList
dirs
=
directory
.
split
(
QLatin1Char
(
'/'
),
Qt
::
SkipEmptyParts
);
#endif
QStringList
::
ConstIterator
it
=
dirs
.
begin
();
for
(;
it
!=
dirs
.
end
();
++
it
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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