ActionSelectionPopover does not handle the 'visible' property of actions properly
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
High
|
Zoltan Balogh | ||
| | Ubuntu File Manager App |
Undecided
|
Niklas Wenzel | ||
| | ubuntu-ui-toolkit (Ubuntu) |
Undecided
|
Niklas Wenzel | ||
| | Vivid |
Undecided
|
Unassigned | ||
| | ubuntu-ui-toolkit (Ubuntu RTM) |
Undecided
|
Niklas Wenzel | ||
Bug Description
When setting the 'visible' property of an action in an ActionList of an ActionSelection
Demo code (containing an outcommented workaround):
import QtQuick 2.3
import Ubuntu.Components 1.1
import Ubuntu.
import Ubuntu.
MainView {
width: units.gu(50)
height: units.gu(75)
Page {
title: i18n.tr(
Button {
id: button
width: parent.width
text: i18n.tr("Show popover")
}
}
Component {
id: actionSelection
}
// Uncomment the following for a temporary workaround:
// delegate: Empty {
// id: listItem
// Label {
// text: listItem.text
// anchors {
// verticalCenter: parent.
// horizontalCenter: parent.
// }
// wrapMode: Text.Wrap
// color: Theme.palette.
// }
// /*! \internal */
// onTriggered: popover.hide()
// visible: enabled && ((action === undefined) || action.visible)
// height: visible ? implicitHeight : 0
// }
}
}
}
}
Related branches
- PS Jenkins bot: Approve (continuous-integration) on 2015-01-15
- Zsombor Egri (community): Approve on 2015-01-15
-
Diff: 11 lines (+1/-1)1 file modifiedmodules/Ubuntu/Components/Popups/ActionSelectionPopover.qml (+1/-1)
- Zoltan Balogh (community): Approve on 2015-02-17
-
Diff: 11 lines (+1/-1)1 file modifiedmodules/Ubuntu/Components/Popups/ActionSelectionPopover.qml (+1/-1)
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration) on 2015-08-26
- Arto Jalkanen: Approve on 2015-08-25
-
Diff: 27 lines (+0/-17)1 file modifiedsrc/app/qml/ui/FolderListPage.qml (+0/-17)
| Niklas Wenzel (nikwen) wrote : | #1 |
| Changed in ubuntu-ui-toolkit: | |
| assignee: | nobody → Niklas Wenzel (nikwen) |
| Niklas Wenzel (nikwen) wrote : | #2 |
| Changed in ubuntu-filemanager-app: | |
| assignee: | nobody → Niklas Wenzel (nikwen) |
| Changed in ubuntu-ui-toolkit (Ubuntu): | |
| assignee: | nobody → Niklas Wenzel (nikwen) |
| no longer affects: | ubuntu-ui-toolkit |
| Niklas Wenzel (nikwen) wrote : | #3 |
Zoltan, thank you for assigning this to the right project. Should I always file bugs against "ubuntu-ui-toolkit (Ubuntu)" instead of "ubuntu-
| Changed in ubuntu-ui-toolkit (Ubuntu): | |
| status: | New → In Progress |
| Changed in ubuntu-ui-toolkit (Ubuntu): | |
| status: | In Progress → Fix Committed |
| Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
| assignee: | nobody → Niklas Wenzel (nikwen) |
| Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
| status: | New → In Progress |
| Pat McGowan (pat-mcgowan) wrote : | #4 |
fix in the first update
| Changed in canonical-devices-system-image: | |
| importance: | Undecided → High |
| milestone: | none → ww07-2015 |
| status: | New → Confirmed |
| Niklas Wenzel (nikwen) wrote : | #5 |
Thanks, Pat. :)
| Changed in canonical-devices-system-image: | |
| assignee: | nobody → Niklas Wenzel (nikwen) |
| Launchpad Janitor (janitor) wrote : | #6 |
This bug was fixed in the package ubuntu-ui-toolkit - 1.1.1403+
---------------
ubuntu-ui-toolkit (1.1.1403+
[ Albert Astals Cid ]
* Adapt to behaviour change in handling of QVariants from QML to
C++ in Qt 5.4
* Don't use Qt::PopupFocusR
is the correct reason QtQuick is since 5.4 ignoring focus changes
due to PopupFocusReason. Fixes LP: #1395014.
* Fix test failure with Qt 5.4 ExpandablesColu
In Qt 5.4 an alias to a null variable is correctly null instead of
undefined like it was in 5.3, since we still want 5.3 support i'm
conveting it to a verify with == that uses JS loose comparison to
accept both null and undefined. Fixes LP: #1395012.
[ Alexandre Abreu ]
* Remove the unecessary DBUS bindingi to global address
org.
for confined apps and the uri-dispatcher anyway does not work by
directly calling into the exposed "well known names" exposed on
the bus as TEd explains here LP: #1342129 but by directly calling
into the process dbus connection. Fixes LP: #1378823.
[ Benjamin Zeller ]
* Fix scripts to work in shadowbuild mode.
* Shadowbuild support for ubuntu-ui-toolkit.
[ Christian Dywan ]
* Abort export_
absent. Fixes LP: #1415973.
* Asterisk are needed for cp -R.
* Ensure adb is running (and fallback arch if dpkg-dev is missing).
Fixes LP: #1417997.
* Get arch for push_to_phone.sh from device and handle adb refusal.
* Implement and unit-test i18n.(c)tag. Fixes LP: #1417031.
* Print component creation errors in popupUtils.open.
Fixes LP: #1418507.
* Use correct unfocussed text field color. Fixes LP: #1396062.
[ Daniel d'Andrada ]
* Refactor OrientationHelper Simplify animation code and make it
more robust. It now survives changes in Screen.
and Screen.orientation happening one right after the other.
[ Daniel Holbach ]
* Fix broken link to developer site.
[ Giulio Collura ]
* This is a bugfix for bug LP: #1341814 and bug LP: #1400297.
Essentially we have to force the removal of the previous
'contents' item by removing its parent. This way we ensure that
the contents are correctly hidden, focused and removed, without
destroying them.
[ Loïc Molinari ]
* Removed unused variables breaking debug builds.
[ Michael Sheldon ]
* Only use stableOrientati
the orientationAngle has been set automatically.
Fixes LP: #1409027.
[ Niklas Wenzel ]
* Fixes LP: #1395118
[ nskaggs ]
* Re-add autopilot helper documentation and update. Fixes
LP: #1409778, LP: #1410477.
[ Tim Peeters ]
* Add a preview of the new list items to the UITK component gallery.
* Add performance test for MainView.
* Clean python code to follow pep257 standards.
* Fix incorrect header contents width when navigating back from a
page with a lot of actions. Fixes LP: #1408481.
* Split up MainView in MainView and ...
| Changed in ubuntu-ui-toolkit (Ubuntu): | |
| status: | Fix Committed → Fix Released |
| Changed in canonical-devices-system-image: | |
| status: | Confirmed → In Progress |
| milestone: | ww07-2015 → ww09-2015 |
| assignee: | Niklas Wenzel (nikwen) → Zoltan Balogh (bzoltan) |
| Launchpad Janitor (janitor) wrote : | #7 |
This bug was fixed in the package ubuntu-ui-toolkit - 1.1.1298+
---------------
ubuntu-ui-toolkit (1.1.1298+
[ Niklas Wenzel ]
* ActionSelection
properly (LP: #1395118)
-- CI Train Bot <email address hidden> Wed, 18 Feb 2015 16:59:43 +0000
| Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
| status: | In Progress → Fix Released |
| Changed in canonical-devices-system-image: | |
| milestone: | ww09-2015 → ww13-ota |
| status: | In Progress → Fix Released |
| Changed in ubuntu-filemanager-app: | |
| status: | New → In Progress |
Fix committed into lp:ubuntu-filemanager-app at revision 458, scheduled for release in ubuntu-
| Changed in ubuntu-filemanager-app: | |
| status: | In Progress → Fix Committed |
| Changed in ubuntu-filemanager-app: | |
| status: | Fix Committed → Fix Released |

I just added the ubuntu- filemanager- app project to this bug report as that's where the issue first occured. It currently uses the workaround from the bug description and will remove it as soon as possible. /code.launchpad .net/~nikwen/ ubuntu- filemanager- app/zips/ +merge/ 239662
https:/