diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2016-11-22 22:43:31 +0100 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2016-11-22 22:43:31 +0100 |
commit | a773cd5a5c21b26ffc2943dfb2126cee736103c1 (patch) | |
tree | c2ba2fd257f21e843b4910e6f74971f1652337b8 | |
parent | 9a7ed14239987d6b60edc02afcfa3a1b8cb43648 (diff) |
Don't forget to clear the text browser ;)
-rw-r--r-- | mainwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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(""); } } |