Skip to content

Commit

Permalink
FileWatcher: fix double category problem
Browse files Browse the repository at this point in the history
  • Loading branch information
machinekoder committed Nov 15, 2017
1 parent 4b6df3f commit c52a731
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/application/filewatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <QDirIterator>
#include <QLoggingCategory>

Q_LOGGING_CATEGORY(loggingCategory, "filewatcher");
Q_LOGGING_CATEGORY(filewatcherCategory, "filewatcher");

namespace qtquickvcp {

Expand Down Expand Up @@ -105,7 +105,7 @@ void FileWatcher::updateWatchedFile()
}

if (!m_fileUrl.isLocalFile()) {
qCWarning(loggingCategory) << "Can only watch local files";
qCWarning(filewatcherCategory) << "Can only watch local files";
return;
}
const auto &localFile = m_fileUrl.toLocalFile();
Expand All @@ -125,7 +125,7 @@ void FileWatcher::updateWatchedFile()
}
else {
#ifdef QT_DEBUG
qCWarning(loggingCategory) << "File to watch does not exist" << localFile;
qCWarning(filewatcherCategory) << "File to watch does not exist" << localFile;
#endif
}
}
Expand Down

0 comments on commit c52a731

Please sign in to comment.