PISD - mkdir, remove, copy to/from remote

git-svn-id: svn://db.shs.com.ru/pip@89 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-04-09 12:28:26 +00:00
parent c567be27ff
commit b82453d845
4 changed files with 56 additions and 13 deletions

View File

@@ -18,6 +18,7 @@ PIStringList FileManager::TileDir::selectedNames() const {
PIVector<int> sind = selected.toVector();
piForeachC (int i, sind)
ret << entries[i].name();
ret.removeOne("..");
return ret;
}
@@ -56,7 +57,9 @@ bool FileManager::TileDir::keyEvent(PIKbdListener::KeyEvent key) {
return false;
}
setFocus();
if (!remote) {
if (remote) {
actionRequest(remote, Remove, selectedNames());
} else {
removeFiles(dir, selectedNames());
selected.clear();
updateDir();