[devel] kdenonbeta/kdedebian/kalternatives
Juanjo Alvarez <[email protected]>
| Newsgroups | gmane.comp.kde.debian |
|---|---|
| Message-ID | <20040115091139.9314A1718__49646.3250056424$1074159983@office.kde.org> |
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) _______________________________________________ kde-debian-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-debian-devel