mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
ShareDialog: Pointer cosmetics
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
ae0ea12501
commit
6ec69a700d
2 changed files with 7 additions and 6 deletions
|
@ -145,7 +145,8 @@ void ShareDialog::addLinkShareWidget(const QSharedPointer<LinkShare> &linkShare)
|
|||
|
||||
connect(linkShare.data(), &Share::serverError, _linkWidgetList.at(index), &ShareLinkWidget::slotServerError);
|
||||
connect(linkShare.data(), &Share::shareDeleted, _linkWidgetList.at(index), &ShareLinkWidget::slotDeleteShareFetched);
|
||||
if(_manager != nullptr) {
|
||||
|
||||
if(_manager) {
|
||||
connect(_manager, &ShareManager::linkShareRequiresPassword, _linkWidgetList.at(index), &ShareLinkWidget::slotCreateShareRequiresPassword);
|
||||
connect(_manager, &ShareManager::serverError, _linkWidgetList.at(index), &ShareLinkWidget::slotServerError);
|
||||
}
|
||||
|
@ -293,7 +294,7 @@ void ShareDialog::showSharingUi()
|
|||
}
|
||||
|
||||
if (theme->linkSharing()) {
|
||||
if(_manager != nullptr) {
|
||||
if(_manager) {
|
||||
_manager->fetchShares(_sharePath);
|
||||
}
|
||||
}
|
||||
|
@ -301,7 +302,7 @@ void ShareDialog::showSharingUi()
|
|||
|
||||
void ShareDialog::slotCreateLinkShare()
|
||||
{
|
||||
if(_manager != nullptr) {
|
||||
if(_manager) {
|
||||
_manager->createLinkShare(_sharePath, QString(), QString());
|
||||
}
|
||||
}
|
||||
|
@ -321,7 +322,7 @@ void ShareDialog::slotLinkShareRequiresPassword()
|
|||
return;
|
||||
}
|
||||
|
||||
if(_manager != nullptr) {
|
||||
if(_manager) {
|
||||
// Try to create the link share again with the newly entered password
|
||||
_manager->createLinkShare(_sharePath, QString(), password);
|
||||
}
|
||||
|
@ -355,7 +356,7 @@ void ShareDialog::slotAccountStateChanged(int state)
|
|||
bool enabled = (state == AccountState::State::Connected);
|
||||
qCDebug(lcSharing) << "Account connected?" << enabled;
|
||||
|
||||
if (_userGroupWidget != nullptr) {
|
||||
if (_userGroupWidget) {
|
||||
_userGroupWidget->setEnabled(enabled);
|
||||
}
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ private:
|
|||
ShareDialogStartPage _startPage;
|
||||
ShareManager *_manager = nullptr;
|
||||
|
||||
QList<ShareLinkWidget*> _linkWidgetList = {};
|
||||
QList<ShareLinkWidget*> _linkWidgetList;
|
||||
ShareLinkWidget* _emptyShareLinkWidget = nullptr;
|
||||
ShareUserGroupWidget *_userGroupWidget = nullptr;
|
||||
QProgressIndicator *_progressIndicator = nullptr;
|
||||
|
|
Loading…
Reference in a new issue