summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-08-24 13:40:20 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-08-25 16:23:16 -0300
commitec31fe05ff3f9972e9f7f9de9d3ac9e291403202 (patch)
treeb9d85d22f3b54ff6d6b85f5ffc1d459472fe4ccc /main.cpp
parent68425b4bac65e293277123c393e8d5a47a62fcc7 (diff)
downloadgeneratorrunner-ec31fe05ff3f9972e9f7f9de9d3ac9e291403202.tar.gz
generatorrunner-ec31fe05ff3f9972e9f7f9de9d3ac9e291403202.tar.xz
generatorrunner-ec31fe05ff3f9972e9f7f9de9d3ac9e291403202.zip
Plugins always ends with _generator in their names
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 0c14e06..f419bab 100644
--- a/main.cpp
+++ b/main.cpp
@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
// Try to load a generator
QString generatorSet = args.value("generatorSet");
if (!generatorSet.isEmpty()) {
- QLibrary plugin(generatorSet);
+ QLibrary plugin(generatorSet+"_generator");
getGeneratorsFunc getGenerators = reinterpret_cast<getGeneratorsFunc>(plugin.resolve("getGenerators"));
if (getGenerators)
generators = getGenerators();