mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
dbhub: Enforce name and commit message length limits in push dialog
See issue #1097.
This commit is contained in:
@@ -42,6 +42,9 @@ void RemotePushDialog::checkInput()
|
||||
if(ui->editName->text().trimmed().isEmpty())
|
||||
valid = false;
|
||||
|
||||
if(ui->editCommitMessage->toPlainText().size() > 1024)
|
||||
valid = false;
|
||||
|
||||
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(valid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user