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:
authorChristian Kamm <mail@ckamm.de>2017-05-19 10:48:47 +0300
committerckamm <mail@ckamm.de>2017-05-22 11:52:52 +0300
commitf24cdf5a0543f55d5bc262c4f631eab47f629fbf (patch)
treece8219716d87d653d756e7d4f09c7484422473fb /src/gui/sharedialog.cpp
parentd3b00532b1dd9f44cc606e6738b53345c37582cf (diff)
Share dialog: Hide the icon when unused
Previously this used up some space when there was no icon, leading to an oddly indented header.
Diffstat (limited to 'src/gui/sharedialog.cpp')
-rw-r--r--src/gui/sharedialog.cpp2
1 files changed, 2 insertions, 0 deletions
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> 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)