Commit f3f1ab6d authored by Ilkka Ollakka's avatar Ilkka Ollakka
Browse files

qt4: you don't need to sort on invalid index

parent 882d27ad
......@@ -977,14 +977,14 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
menu->addAction( qtr(I_POP_SAVE), this, SLOT( popupSave() ) );
menu->addSeparator();
menu->addAction( qtr(I_POP_INFO), this, SLOT( popupInfo() ) );
}
if( node )
{
if( index.isValid() ) menu->addSeparator();
menu->addSeparator();
menu->addAction( qtr(I_POP_SORT), this, SLOT( popupSort() ) );
if( tree )
menu->addAction( qtr(I_POP_ADD), this, SLOT( popupAddNode() ) );
}
}
if( node && tree )
menu->addAction( qtr(I_POP_ADD), this, SLOT( popupAddNode() ) );
if( index.isValid() )
{
menu->addSeparator();
......
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