summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2016-11-22 22:43:31 +0100
committerAnne Jan Brouwer <brouwer@annejan.com>2016-11-22 22:43:31 +0100
commita773cd5a5c21b26ffc2943dfb2126cee736103c1 (patch)
treec2ba2fd257f21e843b4910e6f74971f1652337b8 /mainwindow.cpp
parent9a7ed14239987d6b60edc02afcfa3a1b8cb43648 (diff)
Don't forget to clear the text browser ;)
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp5
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("");
}
}