Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit a117b4d

Browse files
committed
fix windows loading
1 parent 8929b83 commit a117b4d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

qpluginfactory.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@ void QPluginFactoryBase::reloadPlugins()
134134

135135
//setup dynamic plugins
136136
foreach(auto pluginDir, allDirs) {
137-
foreach(auto info, pluginDir.entryInfoList(QDir::Files | QDir::Readable | QDir::Executable | QDir::NoDotAndDotDot)) {
137+
#ifdef Q_OS_UNIX
138+
foreach(auto info, pluginDir.entryInfoList(QDir::Files | QDir::Readable | QDir::NoDotAndDotDot | QDir::Executable)) {
139+
#else
140+
foreach(auto info, pluginDir.entryInfoList(QDir::Files | QDir::Readable | QDir::NoDotAndDotDot)) {
141+
#endif
138142
QScopedPointer<QPluginLoader, QScopedPointerDeleteLater> loader(new QPluginLoader(info.absoluteFilePath()));
139143
auto metaData = loader->metaData();
140144
auto keys = checkMeta(metaData, loader->fileName());

qpm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"version": {
1717
"fingerprint": "",
18-
"label": "1.1.0",
18+
"label": "1.1.1",
1919
"revision": ""
2020
},
2121
"webpage": "https://github.com/Skycoder42/QPluginFactory"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy