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