Merge lp:~mikemc/ubuntuone-control-panel/fix-1018614-darwin-raise into lp:ubuntuone-control-panel
| Status: | Merged |
|---|---|
| Approved by: | Mike McCracken on 2012-07-05 |
| Approved revision: | 338 |
| Merged at revision: | 337 |
| Proposed branch: | lp:~mikemc/ubuntuone-control-panel/fix-1018614-darwin-raise |
| Merge into: | lp:ubuntuone-control-panel |
| Diff against target: |
34 lines (+5/-3) 2 files modified
ubuntuone/controlpanel/gui/qt/gui.py (+4/-3) ubuntuone/controlpanel/gui/qt/tests/test_start.py (+1/-0) |
| To merge this branch: | bzr merge lp:~mikemc/ubuntuone-control-panel/fix-1018614-darwin-raise |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Manuel de la Peña (community) | 2012-06-28 | Approve on 2012-06-28 | |
| Brian Curtin (community) | Approve on 2012-06-28 | ||
| Roberto Alsina (community) | Approve on 2012-06-28 | ||
|
Review via email:
|
|||
Commit Message
- Call raise_() after show() to ensure the window is brought to the front on darwin. (LP: #1018614)
Description of the Change
- Call raise_() after show() to ensure the window is brought to the front on darwin. (LP: #1018614)
| Roberto Alsina (ralsina) wrote : | # |
I think calling raise_ doesn't hurt in any platorm, so we may just get rid of the if.
Of course, someone needs to test that :)
| Mike McCracken (mikemc) wrote : | # |
Changed to call raise_ on every platform as Roberto suggested.
Verified on ubuntu and windows that it still works as expected.
On those platforms it should be unnecessary but doesn't hurt.
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~mikemc/ubuntuone-control-panel/fix-1018614-darwin-raise into lp:ubuntuone-control-panel failed. Below is the output from the failed tests.
*** Running DBus test suite ***
ubuntuone.
BaseTestCase
runTest ... [OK]
DBusServiceMa
test_
test_
DBusServiceTe
test_
test_
test_
test_
test_
test_
test_
test_
FileSyncTestCase
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
OperationsAut
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
...
- 338. By Mike McCracken on 2012-07-05
-
fix pep8 complaints


Can we add a test in which we assert that raise is not called in anything but darwin. You can patch the sys.platform used in gui.py to return darwin or order according to the test.