mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 17:36:42 +00:00
Removed error code for missing opencs.ini files.
This commit is contained in:
parent
042670fc73
commit
8fb96e1be3
3 changed files with 5 additions and 7 deletions
|
@ -318,7 +318,7 @@ CSMSettings::UserSettings::~UserSettings()
|
|||
{
|
||||
mUserSettingsInstance = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
void CSMSettings::UserSettings::displayFileErrorMessage
|
||||
(const QString &userpath,
|
||||
const QString &globalpath,
|
||||
|
@ -343,7 +343,7 @@ void CSMSettings::UserSettings::displayFileErrorMessage
|
|||
msgBox.setText (mReadWriteMessage + message);
|
||||
msgBox.exec();
|
||||
}
|
||||
|
||||
*/
|
||||
void CSMSettings::UserSettings::loadSettings (const QString &fileName)
|
||||
{
|
||||
QString userFilePath = QString::fromUtf8
|
||||
|
@ -366,14 +366,14 @@ void CSMSettings::UserSettings::loadSettings (const QString &fileName)
|
|||
isSystem = QFile (localFilePath + fileName).exists();
|
||||
otherFilePath = localFilePath;
|
||||
}
|
||||
|
||||
/*
|
||||
//error condition - notify and return
|
||||
if (!isUser || !isSystem)
|
||||
{
|
||||
displayFileErrorMessage (userFilePath, globalFilePath, localFilePath);
|
||||
return;
|
||||
}
|
||||
|
||||
*/
|
||||
QSettings::setPath
|
||||
(QSettings::IniFormat, QSettings::UserScope, userFilePath);
|
||||
|
||||
|
|
|
@ -73,9 +73,6 @@ namespace CSMSettings {
|
|||
void addDefinitions();
|
||||
|
||||
void buildSettingModelDefaults();
|
||||
void displayFileErrorMessage(const QString &userpath,
|
||||
const QString &globalpath,
|
||||
const QString &localpath) const;
|
||||
|
||||
///add a new setting to the model and return it
|
||||
Setting *createSetting (CSMSettings::SettingType typ,
|
||||
|
|
|
@ -123,6 +123,7 @@ void CSVSettings::Dialog::show()
|
|||
{
|
||||
if (pages().isEmpty())
|
||||
buildPages();
|
||||
|
||||
QPoint screenCenter = QApplication::desktop()->screenGeometry().center();
|
||||
|
||||
move (screenCenter - geometry().center());
|
||||
|
|
Loading…
Reference in a new issue