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() void AboutBox::Update()
{ {
GrafPtr savePort;
GetPort(&savePort);
SetPortWindowPort(window); SetPortWindowPort(window);
BeginUpdate(window); BeginUpdate(window);
@ -107,4 +109,5 @@ void AboutBox::Update()
TEUpdate(&portRect, textEdit); TEUpdate(&portRect, textEdit);
EndUpdate(window); EndUpdate(window);
SetPort(savePort);
} }

View File

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

View File

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