From 484a2c800d315bece5fda7b336f14bcda6d38991 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Thu, 14 Apr 2016 10:59:40 +0200 Subject: [PATCH] Fix typo --- src/gui/activitywidget.cpp | 6 +++--- src/gui/activitywidget.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp index cbe32d0fb..3f9b748a4 100644 --- a/src/gui/activitywidget.cpp +++ b/src/gui/activitywidget.cpp @@ -165,7 +165,7 @@ void ActivityWidget::slotAccountActivityStatus(AccountState *ast, int statusCode _ui->_headerLabel->hide(); _ui->_activityList->hide(); } - emit hideAcitivityTab(_accountsWithoutActivities.count() == accountCount + emit hideActivityTab(_accountsWithoutActivities.count() == accountCount && _widgetForNotifId.count() == 0 ); // do not hide if there are notifications showLabels(); @@ -332,7 +332,7 @@ void ActivityWidget::slotBuildNotificationDisplay(const ActivityList& list) scheduleWidgetToRemove(widgetToGo, 0); } - emit hideAcitivityTab(false); + emit hideActivityTab(false); _ui->_notifyLabel->setHidden( _widgetForNotifId.isEmpty() ); _ui->_notifyScroll->setHidden( _widgetForNotifId.isEmpty() ); @@ -511,7 +511,7 @@ ActivitySettings::ActivitySettings(QWidget *parent) _activityWidget = new ActivityWidget(this); _activityTabId = _tab->insertTab(0, _activityWidget, Theme::instance()->applicationIcon(), tr("Server Activity")); connect(_activityWidget, SIGNAL(copyToClipboard()), this, SLOT(slotCopyToClipboard())); - connect(_activityWidget, SIGNAL(hideAcitivityTab(bool)), this, SLOT(setActivityTabHidden(bool))); + connect(_activityWidget, SIGNAL(hideActivityTab(bool)), this, SLOT(setActivityTabHidden(bool))); connect(_activityWidget, SIGNAL(guiLog(QString,QString)), this, SIGNAL(guiLog(QString,QString))); _protocolWidget = new ProtocolWidget(this); diff --git a/src/gui/activitywidget.h b/src/gui/activitywidget.h index f70557372..efee2639e 100644 --- a/src/gui/activitywidget.h +++ b/src/gui/activitywidget.h @@ -72,7 +72,7 @@ signals: void guiLog(const QString&, const QString&); void copyToClipboard(); void rowsInserted(); - void hideAcitivityTab(bool); + void hideActivityTab(bool); void newNotificationList(const ActivityList& list); private slots: