We have moved to a new Sailfish OS Forum. Please start new discussions there.
28

documents app buggy while deleting

asked 2014-04-07 22:59:24 +0300

domnk gravatar image

updated 2014-07-17 20:42:04 +0300

hardcodes.de gravatar image

Hi

When i want to delete several docs the process of deleting is interrupted.

This happens when i want to delete a doc that is one row higher than the document that i deleted less than 5 seconds before (the counter is still running). The second file is not deleted after the counter has finished. The first one is gone.

Anybody else?

edit retag flag offensive close delete

Comments

1

This seem also happen if you delete first a document from the list and then one below it. The second document remains after remorse timer has run out.

Jolla095 ( 2014-04-08 07:08:49 +0300 )edit
1

I still get this problem, after 1.0.7, and the list of documents has ghosts documents (only one now) A document which doesn't exist anymore, which I try to delete but stays there. There's a bug related, https://together.jolla.com/question/35879/documents-app-shows-ghost-documents/, but it mentions only documents on SD card, while in my situation is in the main memory.

magullo ( 2014-06-12 18:08:53 +0300 )edit
1

Same for me. I suppose the remorse timer is being cancelled when the list view is refreshed (after a deletion). Definitely a bug.

rod ( 2014-08-31 13:38:46 +0300 )edit
1

I hate this bug, sometimes I've tried to delete several files and has about 4 or maybe 5 documents with the remorse timer but only the first one is deleted. I also find it terribly annoying that after the delete the refreshed view shows the first documents in the list and not the document after (or before) the deleted one.

JS ( 2014-09-05 10:25:18 +0300 )edit

Same here. This app definitely needs to be improved... An option to select multiple documents to delete them would be nice.

arno784 ( 2015-01-07 12:49:37 +0300 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2014-09-05 13:25:58 +0300

stezz gravatar image

Thanks for the report. Can you please clarify exact steps for the bug?

Like

  • Delete one file
  • Delete another before the first remorse timer

Does it already happen now or do you have to delete 4 or 5 ?

Thanks

edit flag offensive delete publish link more

Comments

  1. created 7 docs, 1.doc, 2.doc etc and downloaded them.
  2. Copied them to another folder though only 1 of the docs were shown in the documents app.
  3. opened documents app and started to delete in numerical order.
  4. had 4 remorse timers then documents app refreshed and only 1.doc were removed.
  5. started to delete again, first 2.doc and then in random order.
  6. only 2. doc disappeared after refresh.
  7. did a test deleting only 2 docs in order, just the first one disappeared .
  8. did the same as previous but in random order and like before only the first selected were deleted.
  9. deleted just one doc and just when deletion were finished I started with next, the app refreshed and the second remorse timer were interrupted.
JS ( 2014-09-05 21:36:55 +0300 )edit
5

answered 2015-03-17 14:45:40 +0300

updated 2015-04-03 16:03:52 +0300

I've found the origin of the issue. It comes from tracker emiting a signal that the list of document should be rebuilt because of file deletion. The current implementation implies a clear and rebuild from scratch of the model thus all previously set remorse timers are killed in the process.

I've send a pull request that modify the answer to the tracker signal not to clear the model, but instead update it. Hopefully, it's not introducing new issues and it will be accepted : https://github.com/sailfishos/sailfish-office/pull/18

EDIT: Thanks to @VDVsx the fix has been commited to master and will be present in verson 1.1.8.

edit flag offensive delete publish link more

Comments

2

Thanks for your efforts on this! Really appreciate it!

anandrkris ( 2015-03-17 15:37:00 +0300 )edit
2

Thank you!

magullo ( 2015-03-17 15:44:16 +0300 )edit
1
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-04-07 22:59:24 +0300

Seen: 383 times

Last updated: Apr 03 '15