Skip to content

Commit

Permalink
fix #28661: Deleting palette doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Jul 31, 2014
1 parent d94fb36 commit 46bc25f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/palettebox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Palette* PaletteBox::newPalette(const QString& name, int slot)
PaletteBoxButton* b = new PaletteBoxButton(p);
vbox->insertWidget(slot, b);
vbox->insertWidget(slot+1, p, 1000);
connect(b, SIGNAL(paletteCmd(int,int)), SLOT(paletteCmd(int,int)));
connect(b, SIGNAL(paletteCmd(PaletteCommand, int)), SLOT(paletteCmd(PaletteCommand, int)));
connect(p, SIGNAL(changed()), Workspace::currentWorkspace, SLOT(setDirty()));
for (int i = 0; i < (vbox->count() - 1) / 2; ++i)
static_cast<PaletteBoxButton*>(vbox->itemAt(i * 2)->widget())->setId(i*2);
Expand Down

0 comments on commit 46bc25f

Please sign in to comment.