diff --git a/src/Gui/DlgActionsImp.cpp b/src/Gui/DlgActionsImp.cpp index f2c85ebb99..7fb740cdce 100644 --- a/src/Gui/DlgActionsImp.cpp +++ b/src/Gui/DlgActionsImp.cpp @@ -59,7 +59,6 @@ using namespace Gui::Dialog; DlgCustomActionsImp::DlgCustomActionsImp( QWidget* parent ) : CustomizeActionPage(parent) , ui(new Ui_DlgCustomActions) - , bShown(false) { ui->setupUi(this); // search for all macros @@ -93,20 +92,6 @@ DlgCustomActionsImp::~DlgCustomActionsImp() { } -/** - * Displays this page. If no macros were found a message box - * appears. - */ -void DlgCustomActionsImp::showEvent(QShowEvent* e) -{ - QWidget::showEvent(e); - if (ui->actionMacros->count() == 0 && bShown == false) - { - bShown = true; - QMessageBox::warning(this, tr("No macro"),tr("No macros found.")); - } -} - bool DlgCustomActionsImp::event(QEvent* e) { bool ok = QWidget::event(e); diff --git a/src/Gui/DlgActionsImp.h b/src/Gui/DlgActionsImp.h index 1f94fb9810..af9b14ced4 100644 --- a/src/Gui/DlgActionsImp.h +++ b/src/Gui/DlgActionsImp.h @@ -64,7 +64,6 @@ Q_SIGNALS: protected: /** Trigger for reparent event. */ bool event(QEvent* e); - void showEvent(QShowEvent* e); void changeEvent(QEvent *e); protected Q_SLOTS: @@ -90,7 +89,6 @@ private: private: std::unique_ptr ui; - bool bShown; /**< For internal use only*/ QString m_sPixmap; /**< Name of the specified pixmap */ };