summaryrefslogtreecommitdiff
path: root/src/plugins/cpaster/pastebindotcomprotocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpaster/pastebindotcomprotocol.cpp')
-rw-r--r--src/plugins/cpaster/pastebindotcomprotocol.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/cpaster/pastebindotcomprotocol.cpp b/src/plugins/cpaster/pastebindotcomprotocol.cpp
index 1d5d77b937..f38af7f4fb 100644
--- a/src/plugins/cpaster/pastebindotcomprotocol.cpp
+++ b/src/plugins/cpaster/pastebindotcomprotocol.cpp
@@ -130,11 +130,10 @@ void PasteBinDotComProtocol::paste(const QString &text,
void PasteBinDotComProtocol::pasteFinished()
{
- if (m_pasteReply->error()) {
+ if (m_pasteReply->error())
qWarning("Pastebin.com protocol error: %s", qPrintable(m_pasteReply->errorString()));
- } else {
+ else
emit pasteDone(QString::fromLatin1(m_pasteReply->readAll()));
- }
m_pasteReply->deleteLater();
m_pasteReply = 0;