Sheet: enable Split action only if only one merged cell is selected
Both main menu and context menu Partially fixes #6744
This commit is contained in:
@@ -483,6 +483,11 @@ QModelIndexList SheetView::selectedIndexes() const
|
||||
return ui->cells->selectionModel()->selectedIndexes();
|
||||
}
|
||||
|
||||
QModelIndexList SheetView::selectedIndexesRaw() const
|
||||
{
|
||||
return ui->cells->selectedIndexesRaw();
|
||||
}
|
||||
|
||||
void SpreadsheetGui::SheetView::select(App::CellAddress cell, QItemSelectionModel::SelectionFlags flags)
|
||||
{
|
||||
ui->cells->selectionModel()->select(model->index(cell.row(), cell.col()), flags);
|
||||
|
||||
Reference in New Issue
Block a user