Sheet: update commands status when selection is changed
Notice it doesn't cover the case of the context menu actions Partially fixes #6744
This commit is contained in:
@@ -938,6 +938,12 @@ void SheetTableView::mousePressEvent(QMouseEvent* event)
|
||||
QTableView::mousePressEvent(event);
|
||||
}
|
||||
|
||||
void SheetTableView::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
|
||||
{
|
||||
Gui::getMainWindow()->updateActions();
|
||||
QTableView::selectionChanged(selected, deselected);
|
||||
}
|
||||
|
||||
void SheetTableView::edit ( const QModelIndex & index )
|
||||
{
|
||||
currentEditIndex = index;
|
||||
|
||||
Reference in New Issue
Block a user