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

Git: Fix soft assertion

First selectionChanged when dialog is opened always has empty index for
previous.

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