Sharing: Fix UI glitch when sharing is disabled

This commit is contained in:
Markus Goetz 2017-05-08 20:57:18 +02:00
parent f52d66a954
commit 8da7919a43

View file

@ -172,6 +172,7 @@ void ShareDialog::showSharingUi()
if (!canReshare) {
auto label = new QLabel(this);
label->setText(tr("The file can not be shared because it was shared without sharing permission."));
label->setWordWrap(true);
layout()->replaceWidget(_ui->shareWidgets, label);
return;
}