Commit 477d6c1c authored by Marco Martin's avatar Marco Martin

make sure to cancel edit when the user moves

parent 6adbe524
......@@ -50,6 +50,10 @@ ContainmentLayoutManager.ItemContainer {
signal launch(int x, int y, var source, string title)
Connections {
target: mainFlickable
onCancelEditModeForItemsRequested: cancelEdit()
}
onDragActiveChanged: {
launcherDragManager.active = dragActive
if (dragActive) {
......
......@@ -70,7 +70,6 @@ Item {
}
//END functions
property bool componentComplete: false
onWidthChanged: recalculateMaxFavoriteCount()
onHeightChanged:recalculateMaxFavoriteCount()
......@@ -151,6 +150,12 @@ Item {
contentHeight: flickableContents.height
interactive: !plasmoid.editMode && !launcherDragManager.active
signal cancelEditModeForItemsRequested
onDragStarted: cancelEditModeForItemsRequested()
onDragEnded: cancelEditModeForItemsRequested()
onFlickStarted: cancelEditModeForItemsRequested()
onFlickEnded: cancelEditModeForItemsRequested()
PlasmaComponents.ScrollBar.vertical: PlasmaComponents.ScrollBar {
id: scrollabr
opacity: mainFlickable.moving
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment