Browse Source

autoaccept: unused code

pull/630/head
agilob 11 years ago
parent
commit
9a5c5484ba
No known key found for this signature in database
GPG Key ID: 34568050DBCCB997
  1. 3
      src/widget/form/settings/generalform.cpp

3
src/widget/form/settings/generalform.cpp

@ -188,13 +188,11 @@ void GeneralForm::onAutoAcceptFileChange() @@ -188,13 +188,11 @@ void GeneralForm::onAutoAcceptFileChange()
if(bodyUI->autoacceptFiles->isChecked() == true)
{
Settings::getInstance().setAutoSaveEnabled(true);
bodyUI->autoSaveFilesDir->setEnabled(true);
connect(bodyUI->autoSaveFilesDir, SIGNAL(clicked()), this, SLOT(onAutoSaveDirChange()));
}
else
{
Settings::getInstance().setAutoSaveEnabled(false);
bodyUI->autoSaveFilesDir->setEnabled(false);
disconnect(bodyUI->autoSaveFilesDir, SIGNAL(clicked()),this, SLOT(onAutoSaveDirChange()));
}
}
@ -205,6 +203,7 @@ void GeneralForm::onAutoSaveDirChange() @@ -205,6 +203,7 @@ void GeneralForm::onAutoSaveDirChange()
QString directory = QFileDialog::getExistingDirectory(0, tr("Choose an auto accept directory","popup title"));
if(directory.isEmpty())
directory = previousDir;
Settings::getInstance().setAutoSaveFilesDir(directory);
bodyUI->autoSaveFilesDir->setText(directory);
}

Loading…
Cancel
Save