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

List:       kde-commits
Subject:    koffice/lib/kofficeui
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2005-07-11 20:21:03
Message-ID: 1121113263.606427.3448.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 433775 by rempt:

Fix bug 108843.
The state of a tristate checkbox shouldn't be read out with isChecked() but with state().


 M  +4 -2      koTemplateChooseDia.cc  


--- trunk/koffice/lib/kofficeui/koTemplateChooseDia.cc #433774:433775
@@ -637,10 +637,12 @@
 	    {
 		// The checkbox m_nodiag is in tri-state mode for new documents
 		// fixes bug:77542
-		if (d->m_nodiag->isChecked())
+		if (d->m_nodiag->state() == QButton::On) {
 		    grp.writeEntry( "NoStartDlg", "yes");
-		else if (!d->m_nodiag->isChecked())
+		}
+		else if (d->m_nodiag->state() == QButton::Off) {
 		    grp.writeEntry( "NoStartDlg", "no");
+		}
 	    }
 	}
 	else
[prev in list] [next in list] [prev in thread] [next in thread] 

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