From 6b8994edba4fcc0663838b90f66fe2ad0f9e134a Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sat, 6 Dec 2014 02:30:01 +0100 Subject: stupid error: use the resources list so we actually get a default value --- client/main.cpp | 4 ++-- 1 file 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[]) resources << "toy"; } - for (const QString &resource: cliOptions.positionalArguments()) { + for (const QString &resource: resources) { resAccess = new ResourceAccess(resource); QObject::connect(&app, &QCoreApplication::aboutToQuit, resAccess, &ResourceAccess::close); @@ -29,4 +29,4 @@ int main(int argc, char *argv[]) } return app.exec(); -} \ No newline at end of file +} -- cgit v1.2.3