diff options
| author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-12-05 09:17:03 +0200 |
|---|---|---|
| committer | Orgad Shaneh <orgads@gmail.com> | 2013-12-05 12:34:43 +0100 |
| commit | 0d37b5453d886cb6015bb1f538a99b8116734bb8 (patch) | |
| tree | e74a7e50cf164d6a3812462702cdbeeb1e4ecf17 | |
| parent | 4845dc77eea56c8df6739da7efdfa5c665efd481 (diff) | |
| download | qt-creator-0d37b5453d886cb6015bb1f538a99b8116734bb8.tar.gz | |
Git: Fix soft assertion
First selectionChanged when dialog is opened always has empty index for
previous.
Change-Id: I024374f9e61fffae351f15af54f769ddf84ded75
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
| -rw-r--r-- | src/plugins/git/logchangedialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/git/logchangedialog.cpp b/src/plugins/git/logchangedialog.cpp index 6a316765b1..a52e1b7e9f 100644 --- a/src/plugins/git/logchangedialog.cpp +++ b/src/plugins/git/logchangedialog.cpp @@ -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(); |
