Summary: | The system settings window decorations modules crashes when applying the plastik windec | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Médéric Boquien <mboquien> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | guernon |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Médéric Boquien
2008-05-22 07:30:53 UTC
r811498 | wheeler | 2008-05-23 10:56:56 +0200 (Fri, 23 May 2008) | 2 lines Casting from ints to widgets and then dereferencing them is bad, mmm-kay? ------------------------------------------------------------------------ Index: config/config.cpp =================================================================== --- config/config.cpp (revision 811497) +++ config/config.cpp (revision 811498) @@ -89,8 +89,13 @@ { KConfigGroup cg(m_config, "General"); - QRadioButton *button = (QRadioButton*)m_dialog->titleAlign->selected(); - if (button) cg.writeEntry("TitleAlignment", QString(button->objectName())); + QList<QRadioButton *> buttons = m_dialog->titleAlign->findChildren<QRadioButton *>(); + for(QList<QRadioButton *>::ConstIterator it = buttons.begin(); it != buttons.end(); ++it) + { + if((*it)->isChecked()) + cg.writeEntry("TitleAlignment", QString((*it)->objectName())); + } + cg.writeEntry("AnimateButtons", m_dialog->animateButtons->isChecked() ); cg.writeEntry("CloseOnMenuDoubleClick", m_dialog->menuClose->isChecked() ); cg.writeEntry("TitleShadow", m_dialog->titleShadow->isChecked() ); *** Bug 163292 has been marked as a duplicate of this bug. *** Bulk change: move all KWin kcm bugs to product kwin |