Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Paweł Wegner
libcloudstorage
Commits
6e1a9d97
Commit
6e1a9d97
authored
Jul 11, 2016
by
Paweł Wegner
Browse files
Cloudbrowser: cancel listDirectory when goBack().
parent
690a9109
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/cloudbrowser/Window.cpp
View file @
6e1a9d97
...
...
@@ -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
;
...
...
examples/cloudbrowser/main.qml
View file @
6e1a9d97
...
...
@@ -52,10 +52,9 @@ Item {
browserView
.
visible
=
false
;
if
(
!
directory
.
focus
)
cloudView
.
focus
=
true
;
}
on
AddedItem
:
{
on
RunListDirectory
:
{
directory
.
visible
=
true
;
directory
.
focus
=
true
;
//console.log(directory.currentIndex);
}
onUploadProgressChanged
:
{
uploadProgress
.
visible
=
total
!=
0
;
...
...
Write
Preview
Supports
Markdown
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