Skip to content

Commit

Permalink
Clear search on profile change
Browse files Browse the repository at this point in the history
  • Loading branch information
cmol committed Jun 12, 2020
1 parent 68c4658 commit adab399
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit adab399

Please sign in to comment.