diff --git a/src/lay/lay/layMacroPropertiesDialog.cc b/src/lay/lay/layMacroPropertiesDialog.cc index 970b605ce..dd76da167 100644 --- a/src/lay/lay/layMacroPropertiesDialog.cc +++ b/src/lay/lay/layMacroPropertiesDialog.cc @@ -23,6 +23,7 @@ #include "layMacroPropertiesDialog.h" #include "layMainWindow.h" +#include "layQtTools.h" #include "lymMacroInterpreter.h" #include "tlString.h" @@ -37,7 +38,7 @@ MacroPropertiesDialog::MacroPropertiesDialog (QWidget *parent) setupUi (this); connect (shortcut, SIGNAL (editingFinished ()), this, SLOT (shortcut_edited ())); - connect (helpLabel, SIGNAL (linkActivated (const QString &)), lay::MainWindow::instance (), SLOT (show_help (const QString &))); + activate_help_links (helpLabel); } int diff --git a/src/lay/lay/laySearchReplaceDialog.cc b/src/lay/lay/laySearchReplaceDialog.cc index 89104ddc0..3a4924b96 100644 --- a/src/lay/lay/laySearchReplaceDialog.cc +++ b/src/lay/lay/laySearchReplaceDialog.cc @@ -25,6 +25,7 @@ #include "laySearchReplacePropertiesWidgets.h" #include "laySearchReplaceConfigPage.h" #include "layConfigurationDialog.h" +#include "layQtTools.h" #include "layMainWindow.h" #include "tlExceptions.h" @@ -728,10 +729,10 @@ SearchReplaceDialog::SearchReplaceDialog (lay::PluginRoot *root, lay::LayoutView connect (delete_selected_button, SIGNAL (clicked ()), this, SLOT (execute_selected_button_clicked ())); connect (replace_selected_button, SIGNAL (clicked ()), this, SLOT (execute_selected_button_clicked ())); - connect (hint_label1, SIGNAL (linkActivated (const QString &)), lay::MainWindow::instance (), SLOT (show_help (const QString &))); - connect (hint_label2, SIGNAL (linkActivated (const QString &)), lay::MainWindow::instance (), SLOT (show_help (const QString &))); - connect (hint_label3, SIGNAL (linkActivated (const QString &)), lay::MainWindow::instance (), SLOT (show_help (const QString &))); - connect (hint_label4, SIGNAL (linkActivated (const QString &)), lay::MainWindow::instance (), SLOT (show_help (const QString &))); + activate_help_links (hint_label1); + activate_help_links (hint_label2); + activate_help_links (hint_label3); + activate_help_links (hint_label4); fill_ctx_cbx (find_context); fill_ctx_cbx (delete_context);