From c9f9f56312d189246471098be18be7a77279ed65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus=20Lensb=C3=B8l?= Date: Fri, 12 Jun 2020 23:00:30 +0200 Subject: Clear search on profile change Fixes #524 --- src/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) 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]); -- cgit v1.2.3