mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 12:05:23 +00:00
Fix refresh by having the save occur on accept instead of during the destructor.
This commit is contained in:
parent
152ab8c13d
commit
40d1882db9
2 changed files with 4 additions and 9 deletions
|
@ -50,6 +50,10 @@ vfs_dialog::vfs_dialog(QWidget* parent) : QDialog(parent),
|
|||
});
|
||||
QPushButton* okay = new QPushButton(tr("Okay"));
|
||||
connect(okay, &QAbstractButton::pressed, [this]() {
|
||||
for (int i = 0; i < tabs->count(); ++i)
|
||||
{
|
||||
static_cast<vfs_dialog_tab*>(tabs->widget(i))->SaveSettings();
|
||||
}
|
||||
accept();
|
||||
});
|
||||
|
||||
|
@ -67,11 +71,3 @@ vfs_dialog::vfs_dialog(QWidget* parent) : QDialog(parent),
|
|||
setLayout(vbox);
|
||||
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:
|
||||
explicit vfs_dialog(QWidget* parent = nullptr);
|
||||
~vfs_dialog();
|
||||
private:
|
||||
gui_settings m_gui_settings;
|
||||
emu_settings m_emu_settings;
|
||||
|
|
Loading…
Add table
Reference in a new issue