X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Ftransfer.cpp;h=460b0676b2b2c88eff5c156addb6200e8ba6bcbb;hp=e9c81f77088bdc83dff66e3eacf5675fd033951b;hb=b65b9f7615165e8700a44d59b7275a55558dd45b;hpb=0d7b511c8510d7fd05d3a704114e34ff37f7a995 diff --git a/src/common/transfer.cpp b/src/common/transfer.cpp index e9c81f77..460b0676 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-2015 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(); +}