Automatically connect to the network before doing a search.

This commit is contained in:
Stephen Heumann 2019-04-19 18:22:57 -05:00
parent d25ac1395b
commit c963529943

View File

@ -12,6 +12,7 @@
#include <quickdraw.h> #include <quickdraw.h>
#include <qdaux.h> #include <qdaux.h>
#include <window.h> #include <window.h>
#include <tcpip.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -54,6 +55,8 @@ void DoSearch(boolean getMore) {
WaitCursor(); WaitCursor();
TCPIPConnect(NULL);
if (!getMore) { if (!getMore) {
FreeJSON(); FreeJSON();
GetLETextByID(window, searchLine, (StringPtr)&queryBuf); GetLETextByID(window, searchLine, (StringPtr)&queryBuf);