Skip to content

Commit a4cc02f

Browse files
committed
[gui] avoid loading of TStyleManager for quit ROOT
When selecting "Quit ROOT" menu item in canvas, do not load TStyleManager class. Only if it was loaded before - execute Terminate() method
1 parent 63dbb6c commit a4cc02f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui/gui/src/TRootCanvas.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ Bool_t TRootCanvas::ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t)
950950
}
951951
if (TVirtualPadEditor::GetPadEditor(kFALSE) != 0)
952952
TVirtualPadEditor::Terminate();
953-
if (TClass::GetClass("TStyleManager"))
953+
if (TClass::GetClass("TStyleManager", kFALSE, kTRUE))
954954
gROOT->ProcessLine("TStyleManager::Terminate()");
955955
gApplication->Terminate(0);
956956
break;

0 commit comments

Comments
 (0)