Commit 5a5f9836 authored by Juraj Oravec's avatar Juraj Oravec Committed by Juraj Oravec
Browse files

SiteInfo: Don't load previews at multiselect

BUG: 451284

It looks like the signal currentItemChanged is fired before the
selectedItems is updated which makes this protection after the second
change of current selection.

This is at minimum good enough when selecting items via arrow keys.

Signed-off-by: Juraj Oravec's avatarJuraj Oravec <>
parent d0ee2f0f
Pipeline #158386 passed with stage
in 3 minutes and 17 seconds
......@@ -277,7 +277,7 @@ void SiteInfo::showPixmap(QPixmap pixmap)
void SiteInfo::showImagePreview(QTreeWidgetItem *item)
if (!item) {
if ((!item) || (item->treeWidget()->selectedItems().length() > 1)) {
QUrl imageUrl = QUrl::fromEncoded(item->text(1).toUtf8());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment