[haiku-commits] haiku: hrev47508 - src/add-ons/input_server/filters/shortcut_catcher

  • From: jessica.l.hamilton@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 17 Jul 2014 01:09:15 +0200 (CEST)

hrev47508 adds 1 changeset to branch 'master'
old head: 5fa8801f3640853e279e91ee6edf1c927824113e
new head: d0c1fd8a17b76b722c3ddb5daa6dda0b3a4e9d92
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=d0c1fd8+%5E5fa8801

----------------------------------------------------------------------------

d0c1fd8: Shortcuts: fix node monitoring of settings file. Fixes #6278.
  
  The initial checks for the settings path were unnecessary, and
  prevented node monitoring from starting when the settings file
  didn't exist.

                         [ Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev47508
Commit:      d0c1fd8a17b76b722c3ddb5daa6dda0b3a4e9d92
URL:         http://cgit.haiku-os.org/haiku/commit/?id=d0c1fd8
Author:      Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
Date:        Wed Jul 16 23:06:12 2014 UTC

Ticket:      https://dev.haiku-os.org/ticket/6278

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 7 deletions(-)
.../input_server/filters/shortcut_catcher/KeyCommandMap.cpp  | 9 ++-------

----------------------------------------------------------------------------

diff --git 
a/src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp 
b/src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp
index cd4a149..a4812e6 100644
--- a/src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp
+++ b/src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp
@@ -85,13 +85,8 @@ KeyCommandMap::KeyCommandMap(const char* file)
 
        BEntry fileEntry(fFileName);
 
-       BEntry parent;
-       BPath parentPath;
-       if (fileEntry.GetParent(&parent) == B_OK
-               && parent.GetPath(&parentPath) == B_OK) {
-               BPrivate::BPathMonitor::StartWatching(parentPath.Path(),
-                       B_WATCH_STAT | B_WATCH_FILES_ONLY, this);
-       }
+       BPrivate::BPathMonitor::StartWatching(fFileName,
+               B_WATCH_STAT | B_WATCH_FILES_ONLY, this);
 
        if (fileEntry.InitCheck() == B_OK) {
                BMessage message(FILE_UPDATED);


Other related posts:

  • » [haiku-commits] haiku: hrev47508 - src/add-ons/input_server/filters/shortcut_catcher - jessica . l . hamilton