summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClaus Lensbøl <cmol@cmol.dk>2020-06-12 23:00:30 +0200
committerClaus Lensbøl <cmol@cmol.dk>2020-06-12 23:03:09 +0200
commitc9f9f56312d189246471098be18be7a77279ed65 (patch)
treed85b8e2cbcd9ed90b7b11de811bb76473e5c5918 /src
parent6edf401ece23ece035e32889c611854df684b79a (diff)
Clear search on profile change
Fixes #524
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 9ce04305..349d79e1 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -767,6 +767,9 @@ void MainWindow::updateProfileBox() {
void MainWindow::on_profileBox_currentIndexChanged(QString name) {
if (m_qtPass->isFreshStart() || name == QtPassSettings::getProfile())
return;
+
+ ui->lineEdit->clear();
+
QtPassSettings::setProfile(name);
QtPassSettings::setPassStore(QtPassSettings::getProfiles()[name]);