From cf030c71045181d18ec650b10507f5fed99a6c6e Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 13 Jun 2018 10:42:16 +0200 Subject: [PATCH] CPaster: Let cpaster finish on console If cpaster is used from command line and KDE paster is used as protocol we have no appropriate way to specify the credentials yet. Emit a signal to avoid letting the application wait infinitely. Change-Id: I7895d5211f1573fae0f69d2ea76532dec53b8d98 Reviewed-by: Filipe Azevedo Reviewed-by: hjk --- src/plugins/cpaster/kdepasteprotocol.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/cpaster/kdepasteprotocol.cpp b/src/plugins/cpaster/kdepasteprotocol.cpp index bafe229e3d6..21c15897a0a 100644 --- a/src/plugins/cpaster/kdepasteprotocol.cpp +++ b/src/plugins/cpaster/kdepasteprotocol.cpp @@ -302,6 +302,7 @@ void KdePasteProtocol::paste(const QString &text, Protocol::ContentType ct, int const QString user; const QString passwd; qDebug() << "KDE needs credentials for pasting"; + emit pasteDone(QString()); return; #endif // store input data as members to be able to use them after the authentication succeeded