mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
dbhub: Add foce push option to push dialog
This commit is contained in:
@@ -43,6 +43,12 @@ void RemotePushDialog::checkInput()
|
||||
else
|
||||
ui->checkPublic->setText(tr("Database will be private. Only you have access to it."));
|
||||
|
||||
// Update the foce push check box text
|
||||
if(ui->checkForce->isChecked())
|
||||
ui->checkForce->setText(tr("Use with care. This can cause remote commits to be deleted."));
|
||||
else
|
||||
ui->checkForce->setText(" "); // The space character here is required to avoid annoying resizes when toggling the checkbox
|
||||
|
||||
// Check input
|
||||
bool valid = true;
|
||||
|
||||
@@ -88,6 +94,11 @@ QString RemotePushDialog::branch() const
|
||||
return ui->comboBranch->currentText();
|
||||
}
|
||||
|
||||
bool RemotePushDialog::forcePush() const
|
||||
{
|
||||
return ui->checkForce->isChecked();
|
||||
}
|
||||
|
||||
void RemotePushDialog::fillInLicences(const QMap<QString, QString>& licences)
|
||||
{
|
||||
// Clear licence list and add default item for unspecified licence
|
||||
|
||||
Reference in New Issue
Block a user