mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
autoaccept: unused code
This commit is contained in:
parent
b9a3341e95
commit
9a5c5484ba
|
@ -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()
|
|||
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…
Reference in New Issue
Block a user