diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-06 02:30:01 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-06 02:30:01 +0100 |
commit | 6b8994edba4fcc0663838b90f66fe2ad0f9e134a (patch) | |
tree | 28eb96dbf8d9b2afe2636f9ca87004677264019c /client/main.cpp | |
parent | 7d3d0cd0670ad52eedf3c4e92eb4d11ce045fae4 (diff) | |
download | sink-6b8994edba4fcc0663838b90f66fe2ad0f9e134a.tar.gz sink-6b8994edba4fcc0663838b90f66fe2ad0f9e134a.zip |
stupid error: use the resources list so we actually get a default value
Diffstat (limited to 'client/main.cpp')
-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 | } |