Skip to content
Snippets Groups Projects

Fix addToolbox() crash (null pointer/reference): create dummy QIcon for overload without icon.

Merged Martin Heistermann requested to merge fix-addtoolbox-without-icon into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -297,7 +297,7 @@ void Core::activateToolbox(QString _pluginName, QString _toolboxName, bool activ
}
void Core::addToolbox(const QString& _name ,QWidget* _widget) {
addToolbox(_name, _widget, 0, 0);
addToolbox(_name, _widget, new QIcon(), 0);
}
void Core::addToolbox(const QString& _name ,QWidget* _widget, QIcon* _icon) {
Loading