- memset(&SubTP, 0, sizeof(WCTemplputParams));
- Buf = NewStrBuf();
- serv_puts(bstr("g_cmd"));
- StrBuf_ServGetln(Buf);
-
- switch (GetServerStatus(Buf, NULL)) {
- case 8:
- serv_puts("\n\n000");
- if ( (StrLength(Buf)==3) &&
- !strcmp(ChrPtr(Buf), "000")) {
- StrBufAppendBufPlain(Buf, HKEY("\000"), 0);
- break;
- }
- case 1:
- LineBuf = NewStrBuf();
- StrBufAppendBufPlain(Buf, HKEY("\n"), 0);
- while (!Done) {
- StrBuf_ServGetln(LineBuf);
- if ( (StrLength(LineBuf)==3) &&
- !strcmp(ChrPtr(LineBuf), "000")) {
- Done = 1;
+ if (havebstr("cancel_button")) {
+ AppendImportantMessage(_("Cancelled. Changes were not saved."), -1);
+ }
+
+ if (havebstr("ok_button")) {
+ Buf = NewStrBuf();
+ serv_puts(bstr("g_cmd"));
+ StrBuf_ServGetln(Buf);
+
+ switch (GetServerStatus(Buf, NULL)) {
+ case 8:
+ serv_puts("\n\n000");
+ if ( (StrLength(Buf)==3) &&
+ !strcmp(ChrPtr(Buf), "000")) {
+ StrBufAppendBufPlain(Buf, HKEY("\000"), 0);
+ break;