hi again!

> On Wednesday 06 November 2002 04:53, Jon Keating wrote:
> On Tuesday 05 November 2002 11:21 am, Joe Stone wrote:
> > The Select-button and the hints-button works, the okay-button sets the
> > message, but neither the Ok, the Cancel or the WindowCloseButton at the
> > titlebar closes the window. It simple stays. The other Dialogs I've
> > tested are closing fine.
>
> Try the options, they away message and options use the same code logic.
Hmmm, perhaps I've descriped my problem to lousy.

Let's say I press Alt-A (for set status to away), the Dialog named "Set Away 
Response for .." appears and I can't close it! Neither with Ok, Cancel or 
Ctrl-Enter or .... xkill onto this dialog kills licq completely :-)

Now I've tested nearly all dialogs in licq. This behavior occours ONLY with 
the Away-Dialog. Also the CustomAwayMsgDlg works perfectly.
The Away-Dialog reside in awaymsgdlg.cpp (AwayMsgDlg).

I haven't coded in C for the last 10 years but I tried the following:
I added print's in the ok-methode and in the destructor

void AwayMsgDlg::ok()
{
printf("in_okay\n");
  QString s = mleAwayMsg->text();
  while (s[s.length()-1].isSpace())
    s.truncate(s.length()-1);
  ICQOwner *o = gUserManager.FetchOwner(LOCK_W);
  o->SetAutoResponse(s.local8Bit());
  gUserManager.DropOwner();
printf("before_close_okay\n");
  close();
printf("out_okay\n");
}

AwayMsgDlg::~AwayMsgDlg()
{
printf("Destr_before_done\n");
  emit done();
printf("Destr_after_done\n");
}

I open the awaymessagedialog (Alt-A) and press OK, then the strings "in_okay", 
"before_close_okay" and "out_okay" comes like expected on the console where I 
started licq. But noting from the destructor comes. Instead the 
CPU-consumption of licq goes to 100% and stays there. The awaymessagedialog 
keeps visible on my screen.
(this behavior also without my debugstrings)

I'm far away from coding and object's and I don't know what close() does. Is 
there a difference between close() and close(true)?
Should the strings in the destructor being printed? Should the destructor 
being executed?

So, I give up :-), wait for a final qt 3.1 release and stay online till then. 

thanx and ciao
Joe


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel

Reply via email to