Fix initializing fClockSettingFile.

Signed-off-by: Rene Gollent <[email protected]>
This commit is contained in:
Murai Takashi
2012-12-31 20:23:26 -05:00
committed by Rene Gollent
parent e71af5ae6c
commit eed38dfa96
+2
View File
@@ -302,6 +302,8 @@ TBarApp::InitSettings()
theDir.CreateFile(settingsFileName, fSettingsFile);
}
filePath = dirPath;
filePath.Append(clockSettingsFileName);
fClockSettingsFile = new BFile(filePath.Path(), O_RDWR);
if (fClockSettingsFile->InitCheck() != B_OK) {
BDirectory theDir(dirPath.Path());