Skip to content
Snippets Groups Projects
Commit b33c811b authored by hluk's avatar hluk
Browse files

Show data size label only when a format is selected


Fixes #1352

Signed-off-by: default avatarLukas Holecek <hluk@email.cz>
parent 5d78f9f1
No related branches found
No related tags found
No related merge requests found
......@@ -168,8 +168,13 @@ void ClipboardDialog::onListWidgetFormatsCurrentItemChanged(
addText();
}
ui->labelProperties->setText(
tr("<strong>Size:</strong> %1 bytes", "Size of data in bytes").arg(bytes.size()) );
if (current) {
ui->labelProperties->setText(
tr("<strong>Size:</strong> %1 bytes", "Size of clipboard/item data in bytes")
.arg(bytes.size()) );
} else {
ui->labelProperties->setText(QString());
}
}
void ClipboardDialog::onActionRemoveFormatTriggered()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment