From 4fbfc9aa54ed4499f54eb7b3cd942337f6b49e58 Mon Sep 17 00:00:00 2001 From: Tannin Date: Fri, 12 Apr 2013 15:31:47 +0200 Subject: - multi-selection in category window - profile loading is now slightly more forgiving --- src/profile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/profile.cpp') diff --git a/src/profile.cpp b/src/profile.cpp index 204a71aa..24c6d943 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -84,7 +84,7 @@ Profile::Profile(const QDir& directory) { initTimer(); if (!QFile::exists(m_Directory.filePath("modlist.txt"))) { - throw std::runtime_error(QObject::tr("modlist.txt missing").toUtf8().constData()); + qWarning("missing modlist.txt in %s", qPrintable(directory.path())); } GameInfo::instance().repairProfile(ToWString(m_Directory.absolutePath())); @@ -185,7 +185,7 @@ void Profile::createTweakedIniFile() { QString tweakedIni = m_Directory.absoluteFilePath("initweaks.ini"); - if (!shellDelete(QStringList(tweakedIni), NULL)) { + if (QFile::exists(tweakedIni) && !shellDelete(QStringList(tweakedIni), NULL)) { reportError(tr("failed to update tweaked ini file, wrong settings may be used: %1").arg(windowsErrorString(::GetLastError()))); return; } -- cgit v1.3.1