mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-20 15:00:36 -04:00
attempt to fix random crash in boards
This commit is contained in:
parent
e59ba49240
commit
7a4bd87fe9
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ void RSTreeView::mouseMoveEvent(QMouseEvent *e)
|
|||
{
|
||||
QModelIndex idx = indexAt(e->pos());
|
||||
|
||||
if(idx != selectionModel()->currentIndex())
|
||||
if(idx.isValid() && idx != selectionModel()->currentIndex())
|
||||
selectionModel()->setCurrentIndex(idx,QItemSelectionModel::ClearAndSelect);
|
||||
|
||||
QTreeView::mouseMoveEvent(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue