all time-based panels are now derived from a common base class
Cuts down on a lot of duplicate code between TimelineWidget/ViewerWidget/CurveWidget/NodeParamView and TimelinePanel/ViewerPanel/CurvePanel/ParamPanel since they all use similar time functions.
This commit is contained in:
@@ -56,7 +56,7 @@ DiskManager::~DiskManager()
|
||||
ds << h.file_size;
|
||||
}
|
||||
} else {
|
||||
qWarning() << "Failed to write cache index";
|
||||
qWarning() << "Failed to write cache index:" << GetCacheIndexFilename();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -196,5 +196,7 @@ qint64 DiskManager::DiskLimit()
|
||||
|
||||
QString DiskManager::GetCacheIndexFilename()
|
||||
{
|
||||
return QDir(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation)).filePath("diskindex");
|
||||
QDir d(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation));
|
||||
d.mkpath(".");
|
||||
return d.filePath("diskindex");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user