Merge pull request #3969 from lrineau/Polyhedron-demo__fix_segfault_of_load_plugin-GF

Polyhedron demo:  fix the menu entry 'Load plugin'
This commit is contained in:
Laurent Rineau 2019-06-05 10:44:27 +02:00
commit 31dd4f11fb
2 changed files with 2 additions and 1 deletions

View File

@ -362,6 +362,7 @@ MainWindow::MainWindow(const QStringList &keywords, bool verbose, QWidget* paren
connect(&operationSearchBar, &QLineEdit::textChanged,
this, &MainWindow::filterOperations);
loadPlugins();
accepted_keywords.clear();
// Setup the submenu of the View menu that can toggle the dockwidgets
Q_FOREACH(QDockWidget* widget, findChildren<QDockWidget*>()) {

View File

@ -454,7 +454,7 @@ private:
bool bbox_need_update;
QMap<QString, QPair<QStringList, QString> >plugin_metadata_map;
QMap<QString, bool> ignored_map;
const QStringList& accepted_keywords;
QStringList accepted_keywords;
private:
QMap<QAction*, QMenu*> action_menu_map;