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
Network
KDE Connect
Commits
be63cea8
Commit
be63cea8
authored
Oct 09, 2020
by
Ahmad Samir
Committed by
Nicolas Fella
Oct 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port from KRun (deprecated) to OpenUrlJob
parent
5fc9fb0f
Pipeline
#37039
passed with stage
in 10 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
plugins/sftp/sftpplugin.cpp
plugins/sftp/sftpplugin.cpp
+6
-3
No files found.
plugins/sftp/sftpplugin.cpp
View file @
be63cea8
...
...
@@ -11,9 +11,10 @@
#include <QDebug>
#include <QStandardPaths>
#include <KIO/OpenUrlJob>
#include <KNotificationJobUiDelegate>
#include <KLocalizedString>
#include <KNotification>
#include <KRun>
#include <KFilePlacesModel>
#include <KPluginFactory>
...
...
@@ -112,8 +113,10 @@ QString SftpPlugin::getMountError()
bool
SftpPlugin
::
startBrowsing
()
{
if
(
mountAndWait
())
{
//return new KRun(QUrl::fromLocalFile(mountPoint()), 0);
return
new
KRun
(
QUrl
(
QStringLiteral
(
"kdeconnect://"
)
+
deviceId
),
nullptr
);
auto
*
job
=
new
KIO
::
OpenUrlJob
(
QUrl
(
QStringLiteral
(
"kdeconnect://"
)
+
deviceId
));
job
->
setUiDelegate
(
new
KNotificationJobUiDelegate
(
KJobUiDelegate
::
AutoHandlingEnabled
));
job
->
start
();
return
true
;
}
return
false
;
}
...
...
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