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
7e0bf642
Commit
7e0bf642
authored
Dec 27, 2017
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow through on some Transaction warnings, to make them more useful
parent
09654c6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libdiscover/Transaction/Transaction.cpp
libdiscover/Transaction/Transaction.cpp
+1
-1
libdiscover/Transaction/TransactionModel.cpp
libdiscover/Transaction/TransactionModel.cpp
+2
-2
No files found.
libdiscover/Transaction/Transaction.cpp
View file @
7e0bf642
...
...
@@ -40,8 +40,8 @@ Transaction::~Transaction()
{
if
(
status
()
<
DoneStatus
||
TransactionModel
::
global
()
->
contains
(
this
))
{
qWarning
()
<<
"destroying Transaction before it's over"
<<
this
;
TransactionModel
::
global
()
->
removeTransaction
(
this
);
}
TransactionModel
::
global
()
->
removeTransaction
(
this
);
}
AbstractResource
*
Transaction
::
resource
()
const
...
...
libdiscover/Transaction/TransactionModel.cpp
View file @
7e0bf642
...
...
@@ -171,9 +171,10 @@ void TransactionModel::addTransaction(Transaction *trans)
void
TransactionModel
::
removeTransaction
(
Transaction
*
trans
)
{
Q_ASSERT
(
trans
);
trans
->
deleteLater
();
int
r
=
m_transactions
.
indexOf
(
trans
);
if
(
r
<
0
)
{
qWarning
()
<<
"transaction not part of the model
already
"
<<
trans
;
qWarning
()
<<
"transaction not part of the model"
<<
trans
;
return
;
}
...
...
@@ -186,7 +187,6 @@ void TransactionModel::removeTransaction(Transaction *trans)
emit
transactionRemoved
(
trans
);
if
(
m_transactions
.
isEmpty
())
emit
lastTransactionFinished
();
trans
->
deleteLater
();
}
void
TransactionModel
::
transactionChanged
(
int
role
)
...
...
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