Timothy Pearson 11 years ago
commit 690b6e163b

@ -234,14 +234,16 @@ void KcmGtk::getInstalledThemes()
bool installed = false;
widget->styleBox->clear();
if(!themes.empty()) {
TQStringList otherStyles = themes.keys();
if(!otherStyles.empty()) {
if(otherStyles.find("Qt")!=otherStyles.end()) {
otherStyles.remove(otherStyles.find("Qt"));
installed = !otherStyles.empty();
}
installed = !otherStyles.empty();
if(installed) {
widget->styleBox->insertStringList(otherStyles);
}
}
widget->styleKde->setEnabled(installed);
widget->styleBox->setEnabled(installed);
widget->styleOther->setEnabled(installed);
@ -269,14 +271,16 @@ void KcmGtk::getInstalledThemes()
bool gtk3installed = false;
widget->styleBox3->clear();
if(!gtk3Themes.empty()) {
TQStringList otherGtk3Styles = gtk3Themes.keys();
if(!otherGtk3Styles.empty()) {
if(otherGtk3Styles.find("tdegtk")!=otherGtk3Styles.end()) {
otherGtk3Styles.remove(otherGtk3Styles.find("tdegtk"));
gtk3installed = !otherGtk3Styles.empty();
}
gtk3installed = !otherGtk3Styles.empty();
if(gtk3installed) {
widget->styleBox3->insertStringList(otherGtk3Styles);
}
}
widget->styleKde3->setEnabled(gtk3installed);
widget->styleBox3->setEnabled(gtk3installed);
widget->styleOther3->setEnabled(gtk3installed);

Loading…
Cancel
Save