- fix: default file type in editor misc setting page not correctly setted
This commit is contained in:
parent
42029028fc
commit
63632b6012
|
@ -19,7 +19,11 @@ void EditorMiscWidget::doLoad()
|
||||||
{
|
{
|
||||||
ui->chkReadonlySystemHeaders->setChecked(pSettings->editor().readOnlySytemHeader());
|
ui->chkReadonlySystemHeaders->setChecked(pSettings->editor().readOnlySytemHeader());
|
||||||
ui->chkLoadLastFiles->setChecked(pSettings->editor().autoLoadLastFiles());
|
ui->chkLoadLastFiles->setChecked(pSettings->editor().autoLoadLastFiles());
|
||||||
ui->rbCppFile->setChecked(pSettings->editor().defaultFileCpp());
|
if (pSettings->editor().defaultFileCpp()) {
|
||||||
|
ui->rbCppFile->setChecked(true);
|
||||||
|
} else {
|
||||||
|
ui->rbCFile->setChecked(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorMiscWidget::doSave()
|
void EditorMiscWidget::doSave()
|
||||||
|
|
Loading…
Reference in New Issue