1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 03:02:53 +01:00

Qt: don't create stupid default.ini file when resetting gui configs

This commit is contained in:
Megamouse 2020-03-07 22:27:40 +01:00
parent 9b672cb969
commit ab4189998c
3 changed files with 3 additions and 2 deletions

View File

@ -304,7 +304,7 @@ QStringList gui_settings::GetStylesheetEntries()
#else
QDir platformStylesheetDir = QCoreApplication::applicationDirPath() + "/../share/rpcs3/GuiConfigs/";
#endif
res.append(gui::utils::get_dir_entries(platformStylesheetDir, nameFilter));
res.append(gui::utils::get_dir_entries(platformStylesheetDir, name_filter));
res.removeDuplicates();
#endif
res.sort(Qt::CaseInsensitive);

View File

@ -5,6 +5,8 @@
#include <QVariant>
#include <QSize>
#include <memory>
struct gui_save
{
QString key;

View File

@ -1608,7 +1608,6 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> gui_settings, std
{
apply_gui_options(true);
m_gui_settings->Reset(true);
m_gui_settings->ChangeToConfig(gui::Default);
Q_EMIT GuiSettingsSyncRequest(true);
AddConfigs();
AddStylesheets();