mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-19 06:29:10 +03:00
Fixed the problem that caused the software to crash in MergeDialog on select the action
This commit is contained in:
parent
fc90ffd3c5
commit
faa6f85514
@ -55,14 +55,11 @@ MergeDialog::MergeDialog(
|
||||
|
||||
QLabel *label = new QLabel(labelText(), this);
|
||||
|
||||
QCheckBox *noCommit = nullptr;
|
||||
if (flags & RepoView::Merge) {
|
||||
noCommit = new QCheckBox(tr("No commit"), this);
|
||||
noCommit->setChecked(!Settings::instance()->value(kCommitKey).toBool());
|
||||
connect(noCommit, &QCheckBox::toggled, [](bool checked) {
|
||||
Settings::instance()->setValue(kCommitKey, !checked);
|
||||
});
|
||||
}
|
||||
QCheckBox *noCommit = new QCheckBox(tr("No commit"), this);
|
||||
noCommit->setChecked(!Settings::instance()->value(kCommitKey).toBool());
|
||||
connect(noCommit, &QCheckBox::toggled, [](bool checked) {
|
||||
Settings::instance()->setValue(kCommitKey, !checked);
|
||||
});
|
||||
|
||||
auto signal = QOverload<int>::of(&QComboBox::currentIndexChanged);
|
||||
connect(mAction, signal, [this, label, noCommit]() {
|
||||
|
Loading…
Reference in New Issue
Block a user