Skip to content
Snippets Groups Projects
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
previous.

Change-Id: I024374f9e61fffae351f15af54f769ddf84ded75
Reviewed-by: default avatarPetar Perisin <petar.perisin@gmail.com>
parent 4845dc77
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment