mirror of https://github.com/RPCS3/rpcs3.git
Fix refresh by having the save occur on accept instead of during the destructor.
This commit is contained in:
parent
152ab8c13d
commit
40d1882db9
|
@ -50,6 +50,10 @@ vfs_dialog::vfs_dialog(QWidget* parent) : QDialog(parent),
|
||||||
});
|
});
|
||||||
QPushButton* okay = new QPushButton(tr("Okay"));
|
QPushButton* okay = new QPushButton(tr("Okay"));
|
||||||
connect(okay, &QAbstractButton::pressed, [this]() {
|
connect(okay, &QAbstractButton::pressed, [this]() {
|
||||||
|
for (int i = 0; i < tabs->count(); ++i)
|
||||||
|
{
|
||||||
|
static_cast<vfs_dialog_tab*>(tabs->widget(i))->SaveSettings();
|
||||||
|
}
|
||||||
accept();
|
accept();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -67,11 +71,3 @@ vfs_dialog::vfs_dialog(QWidget* parent) : QDialog(parent),
|
||||||
setLayout(vbox);
|
setLayout(vbox);
|
||||||
setWindowTitle("Virtual File System");
|
setWindowTitle("Virtual File System");
|
||||||
}
|
}
|
||||||
|
|
||||||
vfs_dialog::~vfs_dialog()
|
|
||||||
{
|
|
||||||
for (int i = 0; i < tabs->count(); ++i)
|
|
||||||
{
|
|
||||||
static_cast<vfs_dialog_tab*>(tabs->widget(i))->SaveSettings();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -13,7 +13,6 @@ class vfs_dialog : public QDialog
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit vfs_dialog(QWidget* parent = nullptr);
|
explicit vfs_dialog(QWidget* parent = nullptr);
|
||||||
~vfs_dialog();
|
|
||||||
private:
|
private:
|
||||||
gui_settings m_gui_settings;
|
gui_settings m_gui_settings;
|
||||||
emu_settings m_emu_settings;
|
emu_settings m_emu_settings;
|
||||||
|
|
Loading…
Reference in New Issue