diff options
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
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(); |