Alexey Edelev il y a 5 ans
Parent
commit
9e82e26f19
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      main.cpp

+ 1 - 1
main.cpp

@@ -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) {