feat(cpn): Clear clipboard on profile change (#3929)
... preventing pasting incompatible models after profile change
This commit is contained in:
@@ -1250,6 +1250,7 @@ void MainWindow::onCurrentProfileChanged()
|
|||||||
{
|
{
|
||||||
Firmware::setCurrentVariant(Firmware::getFirmwareForId(g.currentProfile().fwType()));
|
Firmware::setCurrentVariant(Firmware::getFirmwareForId(g.currentProfile().fwType()));
|
||||||
emit firmwareChanged();
|
emit firmwareChanged();
|
||||||
|
QApplication::clipboard()->clear();
|
||||||
updateMenus();
|
updateMenus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user