fix multi highlight bug

This commit is contained in:
Rafael 2016-04-03 05:45:29 +02:00
parent 08ec24fb7c
commit 442e70d501
2 changed files with 2 additions and 0 deletions

View file

@ -167,6 +167,7 @@ void SavegameWidget::contextMenuEvent(QContextMenuEvent *ev)
contextMenu.addAction(tr("Copy savegame"), this, SLOT(on_cmdCopy_clicked())); contextMenu.addAction(tr("Copy savegame"), this, SLOT(on_cmdCopy_clicked()));
contextMenu.addAction(tr("Delete savegame"), this, SLOT(on_cmdDelete_clicked())); contextMenu.addAction(tr("Delete savegame"), this, SLOT(on_cmdDelete_clicked()));
contextMenu.exec(ev->globalPos()); contextMenu.exec(ev->globalPos());
setStyleSheet(styleSheet()); // fix multi highlight bug
} }
void SavegameWidget::on_cbSelected_stateChanged(int arg1) void SavegameWidget::on_cbSelected_stateChanged(int arg1)

View file

@ -176,6 +176,7 @@ void SnapmaticWidget::contextMenuEvent(QContextMenuEvent *ev)
contextMenu.addAction(tr("Export picture"), this, SLOT(on_cmdExport_clicked())); contextMenu.addAction(tr("Export picture"), this, SLOT(on_cmdExport_clicked()));
contextMenu.addAction(tr("Delete picture"), this, SLOT(on_cmdDelete_clicked())); contextMenu.addAction(tr("Delete picture"), this, SLOT(on_cmdDelete_clicked()));
contextMenu.exec(ev->globalPos()); contextMenu.exec(ev->globalPos());
setStyleSheet(styleSheet()); // fix multi highlight bug
} }
void SnapmaticWidget::on_cbSelected_stateChanged(int arg1) void SnapmaticWidget::on_cbSelected_stateChanged(int arg1)