ui->preferenceLineEdit->clear();
ui->preferenceLineEdit->setSyntaxState(SyntaxLineEdit::Empty);
- disconnect(ui->preferenceLineEdit);
+ disconnect(ui->preferenceLineEdit, 0, 0, 0);
bool show = false;
switch (prefs_get_type(pref_)) {
case PREF_UINT:
case PREF_DECODE_AS_UINT:
- new_uint_ = prefs_get_uint_value_real(pref_, pref_stashed);
- connect(ui->preferenceLineEdit, SIGNAL(textEdited(QString)),
+ connect(ui->preferenceLineEdit, SIGNAL(textChanged(QString)),
this, SLOT(uintLineEditTextEdited(QString)));
show = true;
break;
case PREF_STRING:
- new_str_ = prefs_get_string_value(pref_, pref_stashed);
- connect(ui->preferenceLineEdit, SIGNAL(textEdited(QString)),
+ connect(ui->preferenceLineEdit, SIGNAL(textChanged(QString)),
this, SLOT(stringLineEditTextEdited(QString)));
show = true;
break;
case PREF_RANGE:
case PREF_DECODE_AS_RANGE:
- wmem_free(NULL, new_range_);
- new_range_ = range_copy(NULL, prefs_get_range_value_real(pref_, pref_stashed));
- connect(ui->preferenceLineEdit, SIGNAL(textEdited(QString)),
+ connect(ui->preferenceLineEdit, SIGNAL(textChanged(QString)),
this, SLOT(rangeLineEditTextEdited(QString)));
show = true;
break;
module_ = NULL;
wmem_free(NULL, new_range_);
new_range_ = NULL;
- ui->preferenceLineEdit->clear();
animatedHide();
}