Skip to content

Commit 24f169a

Browse files
Kjell MorgensternTheAssassin
Kjell Morgenstern
authored andcommitted
Make sure destination is used as a directory. Fixes #184
1 parent 0a29e02 commit 24f169a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/deployers/BasicPluginsDeployer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ bool BasicPluginsDeployer::deployStandardQtPlugins(const std::vector<std::string
3939
for (const auto &pluginName : plugins) {
4040
ldLog() << "Deploying Qt" << pluginName << "plugins" << std::endl;
4141
for (fs::directory_iterator i(qtPluginsPath / pluginName); i != fs::directory_iterator(); ++i) {
42-
if (!appDir.deployLibrary(*i, appDir.path() / "usr/plugins" / pluginName))
42+
// add a trailing slash, so pluginName is used as a destination directory, not a file.
43+
if (!appDir.deployLibrary(*i, appDir.path() / "usr/plugins" / pluginName / ""))
4344
return false;
4445
}
4546
}

0 commit comments

Comments
 (0)