mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
ShareDialog: Reenable user input textedit on error #5694
This commit is contained in:
parent
e43425cf16
commit
8a639d39fc
@ -280,9 +280,16 @@ void ShareUserGroupWidget::slotCompleterHighlighted(const QModelIndex & index)
|
||||
void ShareUserGroupWidget::displayError(int code, const QString& message)
|
||||
{
|
||||
_pi_sharee.stopAnimation();
|
||||
|
||||
// Also remove the spinner in the widget list, if any
|
||||
foreach (auto pi, _ui->scrollArea->findChildren<QProgressIndicator*>()) {
|
||||
delete pi;
|
||||
}
|
||||
|
||||
qDebug() << "Error from server" << code << message;
|
||||
_ui->errorLabel->setText(message);
|
||||
_ui->errorLabel->show();
|
||||
_ui->shareeLineEdit->setEnabled(true);
|
||||
}
|
||||
|
||||
ShareWidget::ShareWidget(QSharedPointer<Share> share,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user