All pastes #821902 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-12-18 12:03 UTC
rendered paste body
Index: src/ktouchusersetupdialog.cpp
===================================================================
--- src/ktouchusersetupdialog.cpp       (revision 749884)
+++ src/ktouchusersetupdialog.cpp       (working copy)
@@ -45,7 +45,8 @@
 // ----------------------------------------------------------------------------

 void KTouchUserSetupDialog::userSelected(int index) {
-       if (index == -1 || userListWidget->count()<=1)
+       if (index == -1 || userListWidget->count()<=1 ||
+               userListWidget->currentItem()->text() == i18n("Default User"))
        {
                removeBtn->setEnabled(false);
        }