Remove obsolete xine warning and engine reinitialization
This commit is contained in:
@@ -112,8 +112,7 @@ SettingsDialog::SettingsDialog(Application *app, QWidget *parent)
|
||||
model_(app_->collection_model()->directory_model()),
|
||||
appearance_(app_->appearance()),
|
||||
ui_(new Ui_SettingsDialog),
|
||||
loading_settings_(false),
|
||||
output_changed_(false) {
|
||||
loading_settings_(false) {
|
||||
|
||||
ui_->setupUi(this);
|
||||
ui_->list->setItemDelegate(new SettingsItemDelegate(this));
|
||||
@@ -221,11 +220,6 @@ void SettingsDialog::Save() {
|
||||
|
||||
void SettingsDialog::accept() {
|
||||
Save();
|
||||
// Only Xine needs to reinitialize to switch output and device.
|
||||
if (output_changed_ && engine() && engine()->type() == Engine::Xine && engine()->state() == Engine::Empty) {
|
||||
engine()->ReloadSettings();
|
||||
engine()->Init();
|
||||
}
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user