Commit 6e1a9d97 authored by Paweł Wegner's avatar Paweł Wegner
Browse files

Cloudbrowser: cancel listDirectory when goBack().

parent 690a9109
......@@ -201,6 +201,7 @@ QMap<QString, QVariant> Window::toQMap(const ICloudProvider::Hints& map) const {
}
bool Window::goBack() {
if (list_directory_request_) list_directory_request_->cancel();
if (directory_stack_.empty()) {
startDirectoryClear([this]() { emit runClearDirectory(); });
return false;
......
......@@ -52,10 +52,9 @@ Item {
browserView.visible = false;
if (!directory.focus) cloudView.focus = true;
}
onAddedItem: {
onRunListDirectory: {
directory.visible = true;
directory.focus = true;
//console.log(directory.currentIndex);
}
onUploadProgressChanged: {
uploadProgress.visible = total != 0;
......
Supports Markdown
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