[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    Re: [Kopete-devel] Re: kdenonbeta/kopete/kopete
From:       Jason Keirstead <jason () keirstead ! org>
Date:       2003-02-05 18:28:44
[Download RAW message or body]

On February 5, 2003 02:06 pm, Carsten Pfeiffer wrote:
> On Wednesday 05 February 2003 18:51, Nick Betcher wrote:
>
> Nooooo! Do you think you can call a different method and the comment still
> applies? If you reject the close-event, you can't shutdown KDE anymore with 
> kopete running.
>
> (I'm not on this list)

Change this code to use a bool testcase as Richado Pedro suggested in his mail.
-----

Ricardo.

This is the kacpi code :

void kacpi::slotExit()
   {
      realclosing=true;
      close();
   }

void kacpi::closeEvent(QCloseEvent *e)
{

KConfig* config = kapp->config();
if (config->readBoolEntry("dock_panel", false))
   {
if (!realclosing)
   {
    e->ignore();
    hide();
   }
   else
   {
   e->accept();
   }
   }
else
{
   e->accept();
}
}



-- 
Jason Keirstead, BCS
http://www.keirstead.org
_______________________________________________
Kopete-devel mailing list
Kopete-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic