diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 34dcd6c05..0051177ee 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -87,11 +87,11 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), QAction *action = new QAction(tr("Apply changes"), this); connect(action, SIGNAL(triggered(bool)), this, SLOT(acceptChanges())); - addMessageAction(action); + ui.diveNotesMessage->addAction(action); action = new QAction(tr("Discard changes"), this); connect(action, SIGNAL(triggered(bool)), this, SLOT(rejectChanges())); - addMessageAction(action); + ui.diveNotesMessage->addAction(action); QShortcut *closeKey = new QShortcut(QKeySequence(Qt::Key_Escape), this); connect(closeKey, SIGNAL(activated()), this, SLOT(escDetected())); @@ -179,11 +179,6 @@ MainTab::~MainTab() { } -void MainTab::addMessageAction(QAction *action) -{ - ui.diveNotesMessage->addAction(action); -} - void MainTab::hideMessage() { ui.diveNotesMessage->animatedHide(); diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h index 351449cd7..fd11a40fc 100644 --- a/desktop-widgets/tab-widgets/maintab.h +++ b/desktop-widgets/tab-widgets/maintab.h @@ -73,7 +73,6 @@ slots: void on_rating_valueChanged(int value); void on_visibility_valueChanged(int value); void on_tagWidget_editingFinished(); - void addMessageAction(QAction *action); void hideMessage(); void closeMessage(); void displayMessage(QString str);