LaunchAPPLServer: minor bugfixes

This commit is contained in:
Wolfgang Thaller 2019-01-24 18:15:47 +01:00
parent c915b2d011
commit 6106b89c9a
3 changed files with 7 additions and 1 deletions

View File

@ -89,6 +89,8 @@ AboutBox::~AboutBox()
void AboutBox::Update()
{
GrafPtr savePort;
GetPort(&savePort);
SetPortWindowPort(window);
BeginUpdate(window);
@ -107,4 +109,5 @@ void AboutBox::Update()
TEUpdate(&portRect, textEdit);
EndUpdate(window);
SetPort(savePort);
}

View File

@ -596,7 +596,7 @@ void ConnectionChanged()
default:
;
}
WritePrefs();
if(connection)
{
connection->setListener(&server);

View File

@ -169,6 +169,8 @@ void StatusDisplay::DrawValue(Stat stat, long val)
void StatusDisplay::Update()
{
GrafPtr savePort;
GetPort(&savePort);
SetPortWindowPort(statusWindow);
BeginUpdate(statusWindow);
EraseRgn(background);
@ -257,6 +259,7 @@ void StatusDisplay::Update()
#endif
EndUpdate(statusWindow);
SetPort(savePort);
}
void StatusDisplay::Idle()