Skip to content

Commit

Permalink
Fixed a bug introduced with the plugin refactoring: some tool menu it…
Browse files Browse the repository at this point in the history
…ems were not functional.
  • Loading branch information
klayoutmatthias committed Nov 26, 2018
1 parent 42774f6 commit 130d08a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lay/lay/layMainWindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5647,6 +5647,14 @@ PluginRootToMainWindow::select_mode (int mode)
}
}

void
PluginRootToMainWindow::menu_activated (const std::string &symbol)
{
if (mp_main_window.get ()) {
mp_main_window->menu_activated (symbol);
}
}

// ------------------------------------------------------------
// Implementation of the "help about" dialog

Expand Down
1 change: 1 addition & 0 deletions src/lay/lay/layMainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,7 @@ class LAY_PUBLIC PluginRootToMainWindow
virtual void plugin_registered (lay::PluginDeclaration *cls);
virtual void plugin_removed (lay::PluginDeclaration *cls);
virtual void select_mode (int mode);
virtual void menu_activated (const std::string &symbol);

private:
PluginRootToMainWindow (const PluginRootToMainWindow &);
Expand Down

0 comments on commit 130d08a

Please sign in to comment.