Merge lp:~nick-dedekind/qtubuntu/1493530-mimeData into lp:qtubuntu
| Status: | Merged |
|---|---|
| Approved by: | Daniel d'Andrada on 2015-11-11 |
| Approved revision: | 283 |
| Merged at revision: | 289 |
| Proposed branch: | lp:~nick-dedekind/qtubuntu/1493530-mimeData |
| Merge into: | lp:qtubuntu |
| Diff against target: |
34 lines (+10/-6) 1 file modified
src/ubuntumirclient/clipboard.cpp (+10/-6) |
| To merge this branch: | bzr merge lp:~nick-dedekind/qtubuntu/1493530-mimeData |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Daniel d'Andrada (community) | Approve on 2015-11-11 | ||
| PS Jenkins bot | continuous-integration | Approve on 2015-11-09 | |
| Albert Astals Cid (community) | 2015-09-28 | Needs Information on 2015-09-29 | |
|
Review via email:
|
|||
Commit Message
Added check for valid mime data.
Description of the Change
Added check for valid mime data.
| Albert Astals Cid (aacid) wrote : | # |
Would make sense to move the null check inside serialzeMimeData in case it's called from somewhere else in the future?
| Daniel d'Andrada (dandrader) wrote : | # |
> Would make sense to move the null check inside serialzeMimeData in case it's
> called from somewhere else in the future?
I think a Q_ASSERT() at most as serialzeMimeData() is an internal (private) function.
| Daniel d'Andrada (dandrader) wrote : | # |
When it gets a null mimeData it should also clear the global (D-Bus) clipboard.
| Nick Dedekind (nick-dedekind) wrote : | # |
> When it gets a null mimeData it should also clear the global (D-Bus)
> clipboard.
I'm not so sure we should be clearing it if it's null. If a client tries to copy an item which isn't able to set mime data, we shouldn't clear the last item in the clipboard.
I believe the last valid clipboard item should persist until another valid item is set. We don't ever "empty" the clipboard as I understand. For this reason we should actually also put the change inside the if block as well.
- 282. By Nick Dedekind on 2015-11-09
-
merged with trunk
- 283. By Nick Dedekind on 2015-11-09
-
moved changed signal to if block
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:283
http://
Executed test runs:
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| Daniel d'Andrada (dandrader) wrote : | # |
> > When it gets a null mimeData it should also clear the global (D-Bus)
> > clipboard.
>
> I'm not so sure we should be clearing it if it's null. If a client tries to
> copy an item which isn't able to set mime data, we shouldn't clear the last
> item in the clipboard.
>
> I believe the last valid clipboard item should persist until another valid
> item is set. We don't ever "empty" the clipboard as I understand. For this
> reason we should actually also put the change inside the if block as well.
Ok

PASSED: Continuous integration, rev:281 jenkins. qa.ubuntu. com/job/ qtubuntu- ci/246/ jenkins. qa.ubuntu. com/job/ qtubuntu- wily-armhf- ci/37 jenkins. qa.ubuntu. com/job/ qtubuntu- wily-armhf- ci/37/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/qtubuntu- ci/246/ rebuild
http://