Commit 0ec84ebb authored by Jakob Leben's avatar Jakob Leben

qt4: let the main popup menu take ownership of the sort sub-menu

parent be3c0702
......@@ -985,11 +985,12 @@ void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
menu->addAction( qtr(I_POP_INFO), this, SLOT( popupInfo() ) );
if( node )
{
QMenu *sort_menu = new QMenu( qtr(I_POP_SORT) );
sort_menu->addAction( qtr( "Ascending" ), this, SLOT( popupSortAsc() ) );
sort_menu->addAction( qtr( "Descending" ), this, SLOT( popupSortDesc() ) );
menu->addSeparator();
menu->addMenu( sort_menu );
QMenu *sort_menu = menu->addMenu( qtr(I_POP_SORT) );
sort_menu->addAction( qtr( "Ascending" ),
this, SLOT( popupSortAsc() ) );
sort_menu->addAction( qtr( "Descending" ),
this, SLOT( popupSortDesc() ) );
}
}
if( node && tree )
......
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