forked from qt-creator/qt-creator
Fixed crash when using -noload to disable multiple plugins
The noload behavior is also changed: it now always shows the plugins in About Plugins... menu, even though -noload was used. When using -noload, the enabled state of the plugin is not saved, so if the command line arg is removed, the plugin will be loaded normally. Reviewed-by: con
This commit is contained in:
@@ -71,7 +71,7 @@ public:
|
||||
QString category;
|
||||
QList<PluginDependency> dependencies;
|
||||
bool enabled;
|
||||
bool disabledByDependency;
|
||||
bool disabledIndirectly;
|
||||
|
||||
QString location;
|
||||
QString filePath;
|
||||
@@ -89,6 +89,10 @@ public:
|
||||
static bool isValidVersion(const QString &version);
|
||||
static int versionCompare(const QString &version1, const QString &version2);
|
||||
|
||||
// add/remove from providesSpecs
|
||||
void addProvidesForPlugin(PluginSpec *dependent);
|
||||
void removeProvidesForPlugin(PluginSpec *dependent);
|
||||
|
||||
private:
|
||||
PluginSpec *q;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user