X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Ftransfer.cpp;h=60375137cb9b503fe27c45ae8265c4bfc4caa3c4;hp=e9c81f77088bdc83dff66e3eacf5675fd033951b;hb=ba5a098f200be1968d198b1325c45b943c797a3b;hpb=0d7b511c8510d7fd05d3a704114e34ff37f7a995 diff --git a/src/common/transfer.cpp b/src/common/transfer.cpp index e9c81f77..60375137 100644 --- a/src/common/transfer.cpp +++ b/src/common/transfer.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2014 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -171,3 +171,12 @@ void Transfer::setNick(const QString &nick) emit nickChanged(nick); } } + + +void Transfer::setError(const QString &errorString) +{ + qWarning() << Q_FUNC_INFO << errorString; + emit error(errorString); + setState(Failed); + cleanUp(); +}