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
Plasma
Plasma Integration
Commits
08001333
Commit
08001333
authored
Oct 22, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now it depends against new version. Old code can be removed
parent
2984a407
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
src/platformtheme/kdeplatformfiledialoghelper.cpp
src/platformtheme/kdeplatformfiledialoghelper.cpp
+0
-6
src/platformtheme/kdirselectdialog.cpp
src/platformtheme/kdirselectdialog.cpp
+0
-4
No files found.
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
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