Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2018-08-03 10:14:43 +0300
committerOlivier Goffart <olivier@woboq.com>2018-08-14 12:03:02 +0300
commitcf6e8269bfb64005f73e83fb745b78c36d71a127 (patch)
tree4baaf3200d84b0b8e49f6e0fd1affe988fb1be0b /src/gui/activitywidget.cpp
parent58d6632eaf32ae7740cfef1152fb1b700397e712 (diff)
Activities: Remove the text that a server does not support activities when the account is removed
Issue #6679
Diffstat (limited to 'src/gui/activitywidget.cpp')
-rw-r--r--src/gui/activitywidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/activitywidget.cpp b/src/gui/activitywidget.cpp
index e47e0262b..9e07d1826 100644
--- a/src/gui/activitywidget.cpp
+++ b/src/gui/activitywidget.cpp
@@ -84,6 +84,11 @@ ActivityWidget::ActivityWidget(QWidget *parent)
connect(_model, &ActivityListModel::activityJobStatusCode,
this, &ActivityWidget::slotAccountActivityStatus);
+ connect(AccountManager::instance(), &AccountManager::accountRemoved, this, [this] (const auto &ast) {
+ if (_accountsWithoutActivities.remove(ast->account()->displayName()))
+ showLabels();
+ });
+
_copyBtn = _ui->_dialogButtonBox->addButton(tr("Copy"), QDialogButtonBox::ActionRole);
_copyBtn->setToolTip(tr("Copy the activity list to the clipboard."));
connect(_copyBtn, &QAbstractButton::clicked, this, &ActivityWidget::copyToClipboard);