projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only enable the relevant highlight depending on core features
[quassel.git]
/
src
/
common
/
transfer.cpp
diff --git
a/src/common/transfer.cpp
b/src/common/transfer.cpp
index
9141e8a
..
e4d3847
100644
(file)
--- a/
src/common/transfer.cpp
+++ b/
src/common/transfer.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
5
by the Quassel Project *
+ * Copyright (C) 2005-201
6
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-81,6
+81,9
@@
void Transfer::setStatus(Transfer::Status status)
_status = status;
SYNC(ARG(status));
emit statusChanged(status);
_status = status;
SYNC(ARG(status));
emit statusChanged(status);
+ if (status == Status::Completed || status == Status::Failed) {
+ cleanUp();
+ }
}
}
}
}
@@
-212,7
+215,6
@@
void Transfer::setError(const QString &errorString)
qWarning() << Q_FUNC_INFO << errorString;
emit error(errorString);
setStatus(Status::Failed);
qWarning() << Q_FUNC_INFO << errorString;
emit error(errorString);
setStatus(Status::Failed);
- cleanUp();
}
}