|
@@ -44,7 +44,7 @@ int main(int argc, char *argv[])
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
- QFileSystemWatcher* watcher(new QFileSystemWatcher(QStringList() << commandFile));
|
|
|
+ QFileSystemWatcher* watcher(new QFileSystemWatcher(QStringList() << commandFile, &a));
|
|
|
QObject::connect(watcher, &QFileSystemWatcher::fileChanged, [&](const QString &path){
|
|
|
qDebug() << "watcher alarm";
|
|
|
if(path == commandFile) {
|