Fix Adjust Current Level to Studio Palette links (#285)

This commit is contained in:
manongjohn 2020-10-03 23:02:05 -04:00 committed by GitHub
parent 583dd5fae9
commit 1c25b6a785
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -506,7 +506,10 @@ void adaptLevelToPalette(TXshLevelHandle *currentLevelHandle,
QApplication::restoreOverrideCursor(); QApplication::restoreOverrideCursor();
currentLevelHandle->getSimpleLevel()->setPalette(plt); currentLevelHandle->getSimpleLevel()->setPalette(plt);
std::wstring oldGlobalName = paletteHandle->getPalette()->getGlobalName();
paletteHandle->setPalette(plt); paletteHandle->setPalette(plt);
paletteHandle->getPalette()->setGlobalName(oldGlobalName);
plt->setDirtyFlag(true); plt->setDirtyFlag(true);
paletteHandle->notifyPaletteChanged(); paletteHandle->notifyPaletteChanged();
currentLevelHandle->notifyLevelChange(); currentLevelHandle->notifyLevelChange();