Skip to content
This repository has been archived by the owner on Aug 26, 2020. It is now read-only.

Commit

Permalink
Fallback Poller fixes related to 0.9.7.7
Browse files Browse the repository at this point in the history
  • Loading branch information
3vi1 committed Apr 12, 2018
1 parent fab532d commit e876697
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
7 changes: 5 additions & 2 deletions src/logcatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,12 @@ QStringList LogCatcher::files()

#ifdef USE_FALLBACK_POLLER
QStringList files;
foreach(QFileInfo fileInfo, watchList)
foreach(QFileInfoList watchList, dirWatchList)
{
files.append(fileInfo.absoluteFilePath());
foreach(QFileInfo fileInfo, watchList)
{
files.append(fileInfo.absoluteFilePath());
}
}
return files;
#else
Expand Down
7 changes: 0 additions & 7 deletions src/logcatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
#ifndef LOGCATCHER_H
#define LOGCATCHER_H

/* For some reason, actually using the above define in this same file ends up with the
* QTimer not firing?!?! At least it does when testing with gcc on Linux. That's why I
* do not use the flag below to optimize what's built on Linux.
*/

#include <QFileInfoList>
#include <QFileSystemWatcher>
#include <QMap>
Expand Down Expand Up @@ -76,8 +71,6 @@ public slots:

Options* m_options;
QFileSystemWatcher dirWatcher;
// QFileInfoList watchList;
// QFileInfoList lastAllFiles;
QSet<QString> localChannels;
QString logDir;

Expand Down

0 comments on commit e876697

Please sign in to comment.