Diffstat (limited to 'libopie2/opiecore/ofilenotify.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/ofilenotify.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiecore/ofilenotify.cpp b/libopie2/opiecore/ofilenotify.cpp index b576c4f..2a9bb8c 100644 --- a/libopie2/opiecore/ofilenotify.cpp +++ b/libopie2/opiecore/ofilenotify.cpp | |||
@@ -240,24 +240,26 @@ bool OFileNotification::hasChanged() | |||
240 | 240 | ||
241 | 241 | ||
242 | void OFileNotification::singleShot( const QString& path, QObject* receiver, const char* member, OFileNotificationType type ) | 242 | void OFileNotification::singleShot( const QString& path, QObject* receiver, const char* member, OFileNotificationType type ) |
243 | { | 243 | { |
244 | OFileNotification* ofn = new OFileNotification(); | 244 | OFileNotification* ofn = new OFileNotification(); |
245 | ofn->_signal.connect( receiver, member ); | 245 | ofn->_signal.connect( receiver, member ); |
246 | ofn->start( path, true, type ); | 246 | ofn->start( path, true, type ); |
247 | } | 247 | } |
248 | 248 | ||
249 | 249 | ||
250 | void OFileNotification::__signalHandler( int sig, siginfo_t *si, void *data ) | 250 | void OFileNotification::__signalHandler( int sig, siginfo_t *si, void *data ) |
251 | { | 251 | { |
252 | Q_UNUSED( sig ) | ||
253 | Q_UNUSED( data ) | ||
252 | qWarning( "OFileNotification::__signalHandler(): reached." ); | 254 | qWarning( "OFileNotification::__signalHandler(): reached." ); |
253 | int fd = si->si_fd; | 255 | int fd = si->si_fd; |
254 | OFileNotification* fn = notification_list[fd]; | 256 | OFileNotification* fn = notification_list[fd]; |
255 | if ( fn ) | 257 | if ( fn ) |
256 | { | 258 | { |
257 | // check if it really was the file (dnotify triggers on directory granularity, not file granularity) | 259 | // check if it really was the file (dnotify triggers on directory granularity, not file granularity) |
258 | if ( !fn->activate() ) | 260 | if ( !fn->activate() ) |
259 | { | 261 | { |
260 | qDebug( "OFileNotification::__signalHandler(): false alarm ;) Restarting the trigger (if it was single)..." ); | 262 | qDebug( "OFileNotification::__signalHandler(): false alarm ;) Restarting the trigger (if it was single)..." ); |
261 | if ( !(fn->type() & Multi ) ) | 263 | if ( !(fn->type() & Multi ) ) |
262 | { | 264 | { |
263 | int result = ::fcntl( fn->fileno(), F_NOTIFY, fn->type() ); | 265 | int result = ::fcntl( fn->fileno(), F_NOTIFY, fn->type() ); |