storedPut isn't particularly smart and so after pasting the file tell everyone about it
Details
Details
- Reviewers
dfaure - Group Reviewers
Frameworks - Commits
- R241:681501c276ee: [PasteJob] Emit KDirNotify on paste
Copied some text to clipboard, Ctrl+V in Dolphin, typed a name, file showed up immediately. Before that it would only show up after a second
Diff Detail
Diff Detail
- Repository
- R241 KIO
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
src/widgets/paste.cpp | ||
---|---|---|
129 | Missing this as the receiver argument? |
src/widgets/paste.cpp | ||
---|---|---|
129 | This is a static so there's no this and we also just access job and then call another static method |
Comment Actions
"perhaps fix storedPut to do that?" --> I'm not in favour. Generally speaking, we want to do this at the highest level possible, so that batching N jobs doesn't trigger N notifications.
This is e.g. why CopyJob does it, but FileCopyJob doesn't.
Granted we don't have jobs which do multiple storedPuts right now (IIRC), but I can imagine a day where this is the case.