Commit 311f7e12 authored by David Edmundson's avatar David Edmundson

Fix delete in Fish protocol

From 1b834925

porting from KUrl to QUrl was made as:
-    if (!url.hasPath()) {
+    if (!url.path().isEmpty()) {

which is obviously wrong

BUG: 351309
parent 5917fe18
......@@ -1676,7 +1676,7 @@ void fishProtocol::del(const QUrl &u, bool isFile){
openConnection();
if (!isLoggedIn) return;
url.cleanPath();
if (!url.path().isEmpty()) {
if (url.path().isEmpty()) {
sendCommand(FISH_PWD);
} else {
sendCommand((isFile?FISH_DELE:FISH_RMD),E(url.path()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment