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

List:       kde-devel
Subject:    Problem with KMDI
From:       Andrea Bergia <andreabergia2 () yahoo ! it>
Date:       2004-01-22 16:13:17
Message-ID: 200401221713.19016.andreabergia2 () yahoo ! it
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone. I'm playing with KMDI, but I've got a problem. When I 
create only a child window (that is, calling addWindow only once), the 
m_pCurrentWindow is at zero. This code is connected with the action 
KStdAction::close, and doesn't close the current window if it's the 
only created:

if ( m_pCurrentWindow != 0 ) {
    // We could also call removeWindowFromMdi, but it doesn't delete the
    // pointer. This way, we're sure that the view will get deleted.
    closeWindow( m_pCurrentWindow );        
}

I think this is a bug of the KMDI library, or am I doing something 
wrong?

- -- 
Andrea Bergia - studente              Linux Registered User #281550
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAD/ae/QsGXRtKyZkRAlC/AJwLD7EGwG/uvHqaQLoc1m02f+74zQCeLrcD
qxEFX7JnIhZv59fQ34LV94I=
=+/0r
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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