mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Add curly braces
This commit is contained in:
@@ -243,15 +243,12 @@ void FeedListWidget::dragMoveEvent(QDragMoveEvent *event)
|
||||
QTreeWidget::dragMoveEvent(event);
|
||||
|
||||
QTreeWidgetItem *item = itemAt(event->pos());
|
||||
// Prohibit dropping onto global unread counter
|
||||
if (item == m_unreadStickyItem)
|
||||
event->ignore();
|
||||
// Prohibit dragging of global unread counter
|
||||
else if (selectedItems().contains(m_unreadStickyItem))
|
||||
event->ignore();
|
||||
// Prohibit dropping onto feeds
|
||||
else if (item && isFeed(item))
|
||||
if ((item == m_unreadStickyItem) // Prohibit dropping onto global unread counter
|
||||
|| selectedItems().contains(m_unreadStickyItem) // Prohibit dragging of global unread counter
|
||||
|| (item && isFeed(item))) // Prohibit dropping onto feeds
|
||||
{
|
||||
event->ignore();
|
||||
}
|
||||
}
|
||||
|
||||
void FeedListWidget::dropEvent(QDropEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user