Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/i18n/it_IT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Desideri ignorare il controllo di sicurezza e continuare?</translation>
</message>
<message>
<location filename="../lock.ui" line="311"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Note: Passcode must be more then 4 characters and must match in both fields.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Note: Passcode must be more then 3 characters and must match in both fields.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Nota: Il codice di blocco deve contenere più di 4 caratteri e deve corrispondere in entrambi i campi.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
Expand Down
6 changes: 3 additions & 3 deletions src/lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ void Lock::on_passcode1_textChanged(const QString &arg1) {
if (arg1.contains(" ")) {
ui->passcode1->setText(arg1.simplified());
}
ui->setPass->setEnabled(arg1.length() > 4 && arg1 == ui->passcode2->text());
ui->setPass->setEnabled(arg1.length() > 3 && arg1 == ui->passcode2->text());
}

void Lock::on_passcode2_textChanged(const QString &arg1) {
if (arg1.contains(" ")) {
ui->passcode2->setText(arg1.simplified());
}
ui->setPass->setEnabled(arg1.length() > 4 && arg1 == ui->passcode1->text());
ui->setPass->setEnabled(arg1.length() > 3 && arg1 == ui->passcode1->text());
}

void Lock::on_setPass_clicked() {
Expand Down Expand Up @@ -188,7 +188,7 @@ void Lock::on_passcodeLogin_textChanged(const QString &arg1) {
ui->passcodeLogin->setText(arg1.simplified());
}
ui->wrong->hide();
ui->unlock->setEnabled(arg1.length() > 4);
ui->unlock->setEnabled(arg1.length() > 3);
}

void Lock::lock_app() {
Expand Down
2 changes: 1 addition & 1 deletion src/lock.ui
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
<item>
<widget class="QLabel" name="signup_warning">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Note: Passcode must be more then 4 characters and must match in both fields.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Note: Passcode must be more then 3 characters and must match in both fields.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
Expand Down