Thanks! Resolves #795
This commit is contained in:
a1ext 2018-10-15 07:11:47 +03:00 committed by Itay Cohen
parent 4dda930410
commit 781235ba87

View File

@ -177,7 +177,9 @@ void CutterApplication::loadPlugins()
pluginsDir.cdUp(); pluginsDir.cdUp();
} }
#endif #endif
pluginsDir.cd("plugins"); if (!pluginsDir.cd("plugins"))
return;
foreach (QString fileName, pluginsDir.entryList(QDir::Files)) { foreach (QString fileName, pluginsDir.entryList(QDir::Files)) {
QPluginLoader pluginLoader(pluginsDir.absoluteFilePath(fileName)); QPluginLoader pluginLoader(pluginsDir.absoluteFilePath(fileName));
QObject *plugin = pluginLoader.instance(); QObject *plugin = pluginLoader.instance();