[devel] kdenonbeta/kdedebian/kalternatives
Juanjo Alvarez <[email protected]> Thu, 15 Jan 2004 10:11:39 +0100 (CET)
| Newsgroups | gmane.comp.kde.devel.debian,gmane.linux.debian.devel.qt-kde |
|---|---|
| Message-ID | <[email protected]> |
CVS commit by juanjux: If not root: - Maintain always disabled the "apply" button. - Don't ask for commit changes on program exit. CCMAIL: [email protected] 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)