Commit 0d37b545 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Fix soft assertion

First selectionChanged when dialog is opened always has empty index for

Change-Id: I024374f9e61fffae351f15af54f769ddf84ded75
Reviewed-by: default avatarPetar Perisin <>
parent 4845dc77
...@@ -130,7 +130,8 @@ void LogChangeWidget::selectionChanged(const QItemSelection &selected, ...@@ -130,7 +130,8 @@ void LogChangeWidget::selectionChanged(const QItemSelection &selected,
if (!m_hasCustomDelegate) if (!m_hasCustomDelegate)
return; return;
const QModelIndexList previousIndexes = deselected.indexes(); const QModelIndexList previousIndexes = deselected.indexes();
QTC_ASSERT(!previousIndexes.isEmpty(), return); if (previousIndexes.isEmpty())
const QModelIndex current = currentIndex(); const QModelIndex current = currentIndex();
int row = current.row(); int row = current.row();
int previousRow = previousIndexes.first().row(); int previousRow = previousIndexes.first().row();
Markdown is supported
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