Create settings file if missing, so shortcut_catchers node monitoring works. Prior to this change, the add-on would not sense the Shortcuts preferences creating the file, and it wouldn't work right away but only after a reboot. This improves first boot, first use.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39148 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström
2010-10-25 23:08:19 +00:00
parent 1d56eab029
commit 7327585ba3
@@ -71,6 +71,9 @@ KeyCommandMap::KeyCommandMap(const char* file)
strcpy(fFileName, file);
BEntry fileEntry(fFileName);
if (!fileEntry.Exists())
BFile file(fFileName, B_READ_ONLY|B_CREATE_FILE);
if (fileEntry.InitCheck() == B_NO_ERROR) {
node_ref nref;