Skip to content
Permalink
Browse files

Fix hidden custom cells being shown incorrectly in some workspaces

  • Loading branch information...
dmitrio95 committed Oct 8, 2019
1 parent 6c0bef1 commit 2e7a18cdba81e31633065909d70124fff68b96eb
Showing with 4 additions and 2 deletions.
  1. +4 −2 mscore/palette/paletteworkspace.cpp
@@ -510,8 +510,10 @@ AbstractPaletteController* PaletteWorkspace::getMainPaletteController()
QModelIndex PaletteWorkspace::customElementsPaletteIndex(const QModelIndex& index)
{
const QAbstractItemModel* model = customElementsPaletteModel();
if (index.model() == mainPalette && index.parent() == QModelIndex())
return model->index(index.row(), 0);
if (index.model() == mainPalette && index.parent() == QModelIndex()) {
const int row = convertProxyIndex(index, userPalette).row();
return model->index(row, 0);
}
return convertIndex(index, model);
}

0 comments on commit 2e7a18c

Please sign in to comment.
You can’t perform that action at this time.