Browse Source

Fix #1182

pull/1192/head
Dubslow 11 years ago
parent
commit
bcc3ad7038
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA
  1. 6
      src/chatlog/content/filetransferwidget.cpp

6
src/chatlog/content/filetransferwidget.cpp

@ -46,7 +46,6 @@ FileTransferWidget::FileTransferWidget(QWidget *parent, ToxFile file) @@ -46,7 +46,6 @@ FileTransferWidget::FileTransferWidget(QWidget *parent, ToxFile file)
ui->filenameLabel->setText(file.fileName);
ui->progressBar->setValue(0);
ui->fileSizeLabel->setText(getHumanReadableSize(file.filesize));
ui->progressLabel->setText(tr("Waiting to send...", "file transfer widget"));
ui->etaLabel->setText("");
backgroundColorAnimation = new QVariantAnimation(this);
@ -77,7 +76,12 @@ FileTransferWidget::FileTransferWidget(QWidget *parent, ToxFile file) @@ -77,7 +76,12 @@ FileTransferWidget::FileTransferWidget(QWidget *parent, ToxFile file)
//preview
if(fileInfo.direction == ToxFile::SENDING)
{
showPreview(fileInfo.filePath);
ui->progressLabel->setText(tr("Waiting to send...", "file transfer widget"));
}
else
ui->progressLabel->setText(tr("Accept to receive this file", "file transfer widget"));
setFixedHeight(78);
}

Loading…
Cancel
Save