Results Storage: Removed obsolete field. Stored the filename.

p4#: 20959
This commit is contained in:
Jacob Støren 2013-03-19 09:48:30 +01:00
parent 516c642cc4
commit 5860cb2e49
2 changed files with 7 additions and 2 deletions

View File

@ -70,7 +70,13 @@ void RimReservoirCellResultsCacher::setupBeforeSave()
QString newValidCacheFileName = getValidCacheFileName();
QFile cacheFile(newValidCacheFileName);
if (!cacheFile.open(QIODevice::WriteOnly)) qWarning() << "Saving project: Can't open the cache file : " + newValidCacheFileName;
if (!cacheFile.open(QIODevice::WriteOnly))
{
qWarning() << "Saving project: Can't open the cache file : " + newValidCacheFileName;
return;
}
m_resultCacheFileName = newValidCacheFileName;
QDataStream stream(&cacheFile);
stream.setVersion(QDataStream::Qt_4_0);

View File

@ -80,7 +80,6 @@ public:
caf::PdmField<caf::AppEnum< RimDefines::ResultCatType> > m_resultType;
caf::PdmField<QString> m_resultName;
caf::PdmField< std::vector <QDateTime> > m_timeStepDates;
caf::PdmField< std::vector <int> > m_timeStepHasData;
caf::PdmField<qint64> m_filePosition;
};