Skip to content

Commit

Permalink
Merge branch 'master' into develop1044ImplementTOTPFromQRCode
Browse files Browse the repository at this point in the history
  • Loading branch information
deXol committed Mar 29, 2024
2 parents 2bf6c3d + 48015ad commit 7721a95
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/AppGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,13 +839,6 @@ void AppGui::createMainWindow()

win = new MainWindow(wsClient, dbMasterController);

#ifdef Q_OS_UNIX
// Force resize and reset maximumWidth
// This fixes a crash on some Gnome+Wayland platforms
win->resize(0,0);
win->setMaximumWidth(win->width());
#endif

connect(win, &MainWindow::destroyed, [this](QObject *)
{
win = nullptr;
Expand Down
11 changes: 9 additions & 2 deletions src/CredentialsManagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,15 @@ void CredentialsManagement::onPasswordUnlocked(const QString & service, const QS
}
if (serviceMatch && login == selectedLogin->name())
{
m_pCredModel->setClearTextPassword(parsedService, login, password);
ui->credDisplayPasswordInput->setText(password);
const auto loginPassword = selectedLogin->password();
QString passwordToUse = password;
if (!loginPassword.isEmpty() && loginPassword != password)
{
// Password was changed in MMM, display the changed password
passwordToUse = loginPassword;
}
m_pCredModel->setClearTextPassword(parsedService, login, passwordToUse);
ui->credDisplayPasswordInput->setText(passwordToUse);
ui->credDisplayPasswordInput->setLocked(false);
}
}
Expand Down
2 changes: 1 addition & 1 deletion win/installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Name: "Full"; Description: "Full installation"
Name: "moolticute"; Description: "Moolticute"; Types: Full

[Run]
Filename: "{app}\moolticute.exe"; WorkingDir: "{app}"; Description: "Start Moolticute"; Flags: postinstall nowait runascurrentuser
Filename: "{app}\moolticute.exe"; WorkingDir: "{app}"; Description: "Start Moolticute"; Flags: postinstall nowait runascurrentuser skipifsilent

[Registry]
Root: "HKCU"; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "Moolticute"; ValueData: "{app}\moolticute.exe --autolaunched"; Flags: uninsdeletevalue
Expand Down

0 comments on commit 7721a95

Please sign in to comment.