1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-14 01:19:59 +00:00

Removed error code for missing opencs.ini files.

This commit is contained in:
graffy76 2014-05-06 19:22:45 -05:00
parent 042670fc73
commit 8fb96e1be3
3 changed files with 5 additions and 7 deletions

View File

@ -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);

View File

@ -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,

View File

@ -123,6 +123,7 @@ void CSVSettings::Dialog::show()
{
if (pages().isEmpty())
buildPages();
QPoint screenCenter = QApplication::desktop()->screenGeometry().center();
move (screenCenter - geometry().center());