From: Christian Kamm Date: Fri, 19 May 2017 07:48:47 +0000 (+0200) Subject: Share dialog: Hide the icon when unused X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~718 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f24cdf5a0543f55d5bc262c4f631eab47f629fbf;p=nextcloud-desktop.git Share dialog: Hide the icon when unused Previously this used up some space when there was no icon, leading to an oddly indented header. --- diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp index 60d6167d4..c545169e4 100644 --- a/src/gui/sharedialog.cpp +++ b/src/gui/sharedialog.cpp @@ -107,6 +107,7 @@ ShareDialog::ShareDialog(QPointer accountState, return; } + _ui->label_icon->hide(); if (QFileInfo(_localPath).isFile()) { ThumbnailJob *job = new ThumbnailJob(_sharePath, _accountState->account(), this); connect(job, SIGNAL(jobFinished(int, QByteArray)), SLOT(slotThumbnailFetched(int, QByteArray))); @@ -217,6 +218,7 @@ void ShareDialog::slotThumbnailFetched(const int &statusCode, const QByteArray & p.loadFromData(reply, "PNG"); p = p.scaledToHeight(thumbnailSize, Qt::SmoothTransformation); _ui->label_icon->setPixmap(p); + _ui->label_icon->show(); } void ShareDialog::slotAccountStateChanged(int state)