From a773cd5a5c21b26ffc2943dfb2126cee736103c1 Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Tue, 22 Nov 2016 22:43:31 +0100 Subject: Don't forget to clear the text browser ;) --- mainwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mainwindow.cpp') diff --git a/mainwindow.cpp b/mainwindow.cpp index f7bdadc8..701212ff 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -755,7 +755,8 @@ void MainWindow::readyRead(bool finished = false) { autoclearTimer->setSingleShot(true); autoclearTimer->setInterval(1000 * QtPassSettings::getAutoclearPanelSeconds()); - connect(autoclearTimer, SIGNAL(timeout()), this, SLOT(clearPanel(true))); + connect(autoclearTimer, SIGNAL(timeout()), this, + SLOT(clearPanel(true))); autoclearTimer->start(); } } @@ -818,6 +819,8 @@ void MainWindow::clearPanel(bool notify = true) { if (notify) { QString output = "***" + tr("Password and Content hidden") + "***"; ui->textBrowser->setHtml(output); + } else { + ui->textBrowser->setHtml(""); } } -- cgit v1.2.3