Fix Adjust Current Level to Studio Palette links (#285)
This commit is contained in:
parent
583dd5fae9
commit
1c25b6a785
1 changed files with 3 additions and 0 deletions
|
@ -506,7 +506,10 @@ void adaptLevelToPalette(TXshLevelHandle *currentLevelHandle,
|
|||
QApplication::restoreOverrideCursor();
|
||||
|
||||
currentLevelHandle->getSimpleLevel()->setPalette(plt);
|
||||
|
||||
std::wstring oldGlobalName = paletteHandle->getPalette()->getGlobalName();
|
||||
paletteHandle->setPalette(plt);
|
||||
paletteHandle->getPalette()->setGlobalName(oldGlobalName);
|
||||
plt->setDirtyFlag(true);
|
||||
paletteHandle->notifyPaletteChanged();
|
||||
currentLevelHandle->notifyLevelChange();
|
||||
|
|
Loading…
Reference in a new issue