mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 00:35:05 +00:00
Don't try to load files with wrong extension as native plugins. #2626
This commit is contained in:
parent
617c79f976
commit
39bf5c6429
@ -133,6 +133,10 @@ QString PluginManager::getUserPluginsDirectory() const
|
||||
void PluginManager::loadNativePlugins(const QDir &directory)
|
||||
{
|
||||
for (const QString &fileName : directory.entryList(QDir::Files)) {
|
||||
if (!QLibrary::isLibrary(fileName)) {
|
||||
// Reduce amount of warnings, by not attempting files which are obviously not plugins
|
||||
continue;
|
||||
}
|
||||
QPluginLoader pluginLoader(directory.absoluteFilePath(fileName));
|
||||
QObject *plugin = pluginLoader.instance();
|
||||
if (!plugin) {
|
||||
|
Loading…
Reference in New Issue
Block a user