灰度自定义色调曲线不能保存
This commit is contained in:
parent
6cee54f1b0
commit
ef7e0e2df7
|
@ -117,7 +117,6 @@ hg_settingdialog::hg_settingdialog(class Manager *mgr, SANE_Handle handle, const
|
|||
m_closeButton = closeButtonNormal;
|
||||
|
||||
initUi();
|
||||
//on_current_scheme_changed();
|
||||
|
||||
HGChar cfgPath[512];
|
||||
GetConfigPath(cfgPath, 512);
|
||||
|
@ -138,6 +137,8 @@ hg_settingdialog::hg_settingdialog(class Manager *mgr, SANE_Handle handle, const
|
|||
initGammaData();
|
||||
applyDeviceScheme();
|
||||
}
|
||||
else
|
||||
on_current_scheme_changed();
|
||||
connect(comb_, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_current_scheme_changed()));
|
||||
}
|
||||
|
||||
|
@ -2929,9 +2930,9 @@ void hg_settingdialog::slot_pushButton_scheme_management(void)
|
|||
cur_cfg_->add_scheme(cur_scheme_, newCfgName.toStdString().c_str());
|
||||
cur_cfg_->select_scheme(cur_scheme_->get_scheme_name().c_str());
|
||||
cur_cfg_->save();
|
||||
disconnect(comb_, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_current_scheme_changed()));
|
||||
//disconnect(comb_, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_current_scheme_changed()));
|
||||
comb_->setCurrentIndex(index);
|
||||
connect(comb_, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_current_scheme_changed()));
|
||||
//connect(comb_, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_current_scheme_changed()));
|
||||
|
||||
changed_count_++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue