diff options
-rw-r--r-- | client/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/main.cpp b/client/main.cpp index 97d994a..ac086b0 100644 --- a/client/main.cpp +++ b/client/main.cpp | |||
@@ -21,7 +21,7 @@ int main(int argc, char *argv[]) | |||
21 | resources << "toy"; | 21 | resources << "toy"; |
22 | } | 22 | } |
23 | 23 | ||
24 | for (const QString &resource: cliOptions.positionalArguments()) { | 24 | for (const QString &resource: resources) { |
25 | resAccess = new ResourceAccess(resource); | 25 | resAccess = new ResourceAccess(resource); |
26 | QObject::connect(&app, &QCoreApplication::aboutToQuit, | 26 | QObject::connect(&app, &QCoreApplication::aboutToQuit, |
27 | resAccess, &ResourceAccess::close); | 27 | resAccess, &ResourceAccess::close); |
@@ -29,4 +29,4 @@ int main(int argc, char *argv[]) | |||
29 | } | 29 | } |
30 | 30 | ||
31 | return app.exec(); | 31 | return app.exec(); |
32 | } \ No newline at end of file | 32 | } |