Fixed overwrite and logs

Diagnose basic should now see the correct overwrite and log folders,
rather than the default ones.
This commit is contained in:
ZachHaber
2017-01-17 16:34:45 -06:00
parent bc24f6f3d7
commit 2e687bea6e
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -2,3 +2,4 @@ std*.log
build
CMakeLists.txt.user
edit
*.bak
+4 -2
View File
@@ -121,7 +121,8 @@ QList<PluginSetting> DiagnoseBasic::settings() const
bool DiagnoseBasic::errorReported() const
{
QDir dir(qApp->property("dataPath").toString() + "/logs");
//QDir dir(qApp->property("dataPath").toString() + "/logs");
QDir dir(m_MOInfo->basePath()+"/logs");
QFileInfoList files = dir.entryInfoList(QStringList("ModOrganizer_??_??_??_??_??.log"),
QDir::Files, QDir::Name | QDir::Reversed);
@@ -194,7 +195,8 @@ bool DiagnoseBasic::checkEmpty(QString const &path) const
bool DiagnoseBasic::overwriteFiles() const
{
QString dirname(qApp->property("dataPath").toString() + "/overwrite");
//QString dirname(qApp->property("dataPath").toString() + "/overwrite");
QString dirname(m_MOInfo->overwritePath());
if (m_MOInfo->pluginSetting(name(), "ow_ignore_empty").toBool() ||
m_MOInfo->pluginSetting(name(), "ow_ignore_log").toBool()) {
return !checkEmpty(dirname);