Commit 690cf25f authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

fix crash on double-click on signature from unknown key

svn path=/trunk/KDE/kdeutils/kgpg/; revision=787814
parent c386b1f1
...@@ -72,6 +72,9 @@ KeyTreeView::selectedNode() const ...@@ -72,6 +72,9 @@ KeyTreeView::selectedNode() const
void void
KeyTreeView::selectNode(KGpgNode *nd) KeyTreeView::selectNode(KGpgNode *nd)
{ {
if (nd == NULL)
return;
QModelIndex idx = m_proxy->nodeIndex(nd); QModelIndex idx = m_proxy->nodeIndex(nd);
selectionModel()->select(idx, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows); selectionModel()->select(idx, QItemSelectionModel::SelectCurrent | QItemSelectionModel::Rows);
......
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