From 268ec9d3d93f5b5d4591c47f882e285e7eaec4de Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Wed, 8 Jul 2015 22:39:36 +0200 Subject: also do clipboard/hide on error https://github.com/IJHack/qtpass/issues/60 --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1a92de62..be1bef3c 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -517,7 +517,7 @@ void MainWindow::readyRead(bool finished = false) { output = process->readAllStandardOutput(); if (finished && currentAction == GPG) { lastDecrypt = output; - if (useClipboard) { // && error.size() == 0 + if (useClipboard) { QClipboard *clip = QApplication::clipboard(); QStringList tokens = output.split("\n"); clip->setText(tokens[0]); -- cgit v1.2.3