mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 10:16:34 +01:00
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 <jurajoravec@mailo.com>
This commit is contained in:
parent
d0ee2f0f37
commit
5a5f983644
@ -277,7 +277,7 @@ void SiteInfo::showPixmap(QPixmap pixmap)
|
||||
|
||||
void SiteInfo::showImagePreview(QTreeWidgetItem *item)
|
||||
{
|
||||
if (!item) {
|
||||
if ((!item) || (item->treeWidget()->selectedItems().length() > 1)) {
|
||||
return;
|
||||
}
|
||||
QUrl imageUrl = QUrl::fromEncoded(item->text(1).toUtf8());
|
||||
|
Loading…
Reference in New Issue
Block a user