kdenonbeta/kdedebian/kalternatives
CVS commit by juanjux:
If not root:
- Maintain always disabled the "apply" button.
- Don't ask for commit changes on program exit.
CCMAIL: kde-debian-devel@kde.org
M +10 -9 kalternatives 1.2
--- kdenonbeta/kdedebian/kalternatives/kalternatives #1.1.1.1:1.2
@@ -523,16 +523,17 @@
def slotCloseClicked(self):
- global app
- if len(self.getChangedList()) != 0:
- if (QMessageBox.warning(self,"Unapplied changes",\
- "Some changes you did were not applied. Do you want to apply them now?\n\n",\
- "&Yes", "&No", QString.null, 1, 1)):
- pass
- else:
- self.slotApplyClicked()
+ if self.isRoot:
+ global app
+ if len(self.getChangedList()) != 0:
+ if (QMessageBox.warning(self,"Unapplied changes",\
+ "Some changes you did were not applied. Do you want to apply them now?\n\n",\
+ "&Yes", "&No", QString.null, 1, 1)):
+ pass
+ else:
+ self.slotApplyClicked()
app.quit()
def slotSelectionChanged(self):
- if self.iw.changed:
+ if self.iw.changed and self.isRoot:
self.apply.setEnabled(1)
Reply to: