File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ bool Remote::rewire_url(QUrl &url) {
15
15
return false ;
16
16
}
17
17
18
- url.setScheme (" sftp " );
18
+ url.setScheme (scheme );
19
19
url.setUserName (username);
20
20
url.setHost (host);
21
21
url.setPort (port);
@@ -26,6 +26,9 @@ bool Remote::rewire_url(QUrl &url) {
26
26
void Remote::hardcode_prefix (const QString &prefix) {
27
27
init_done = true ;
28
28
QUrl url {prefix};
29
+ if (!url.scheme ().isEmpty ()) {
30
+ scheme = url.scheme ();
31
+ }
29
32
username = url.userName ();
30
33
host = url.host ();
31
34
port = url.port ();
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class Remote {
18
18
bool init_done = false ;
19
19
bool ok = false ;
20
20
21
+ QString scheme = " sftp" ;
21
22
QString username;
22
23
QString host;
23
24
int port = -1 ;
You can’t perform that action at this time.
0 commit comments