Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Discover
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Discover
Commits
2b6507f2
Commit
2b6507f2
authored
Jan 16, 2018
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix removing cancelled transactions
BUG: 388915
parent
8ee02d0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
discover/qml/ProgressView.qml
discover/qml/ProgressView.qml
+6
-3
No files found.
discover/qml/ProgressView.qml
View file @
2b6507f2
...
...
@@ -40,7 +40,7 @@ Kirigami.BasicListItem {
}
onTransactionRemoved
:
{
if
(
trans
.
status
==
Transaction
.
CancelledStatus
||
!
trans
.
resource
)
{
if
(
!
trans
.
resource
)
{
var
id
=
progressModel
.
applicationAt
(
trans
.
resource
)
if
(
id
>=
0
)
progressModel
.
remove
(
id
)
...
...
@@ -69,7 +69,10 @@ Kirigami.BasicListItem {
Component
{
id
:
listenerComp
TransactionListener
{
onCancelled
:
progressModel
.
remove
(
index
)
property
int
index
:
-
1
onCancelled
:
{
progressModel
.
remove
(
index
)
}
}
}
...
...
@@ -85,7 +88,7 @@ Kirigami.BasicListItem {
Navigation
.
openApplication
(
model
.
application
)
}
}
readonly
property
QtObject
listener
:
listenerComp
.
createObject
(
del
,
(
model
.
transaction
.
resource
?
{
resource
:
model
.
transaction
.
resource
}
:
{
transaction
:
model
.
transaction
}))
readonly
property
QtObject
listener
:
listenerComp
.
createObject
(
del
,
(
model
.
transaction
.
resource
?
{
resource
:
model
.
transaction
.
resource
,
index
:
index
}
:
{
transaction
:
model
.
transaction
,
index
:
index
}))
ColumnLayout
{
width
:
parent
.
width
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment