File fix-listing.diff of Package kcm_gtk
--- kcm_gtk/kcmgtk.cpp 2006/11/02 14:59:22 1.7
+++ kcm_gtk/kcmgtk.cpp 2006/11/03 15:38:55
@@ -216,9 +216,8 @@
void KcmGtk::load()
{
parser.parse(QDir::homeDirPath() + "/.gtkrc-2.0");
-
- bool usingQtEngine = false;
- widget->styleBox->setCurrentText("");
+
+ QString style = "QtCurve";
if (!parser.style.isEmpty())
{
for ( QMapIterator<QString, QString> it = themes.begin(); it != themes.end(); ++it )
@@ -226,14 +225,15 @@
if (it.data() != parser.style)
continue;
- if (it.key() == "Qt")
- usingQtEngine = true;
-
- widget->styleBox->setCurrentText(it.key());
+ style = it.key();
}
}
- else
- usingQtEngine = true;
+
+ for (int i=0;i<widget->styleBox->count();i++)
+ if (widget->styleBox->text(i)==style) {
+ widget->styleBox->setCurrentItem(i);
+ break;
+ }
if (!parser.font.isEmpty())
{