Alexey Edelev 5 年 前
コミット
9e82e26f19
1 ファイル変更1 行追加1 行削除
  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) {