|
|
@ -196,7 +196,7 @@ void TopLevel::updateMenu() {
|
|
|
|
for (it = m_ticketList.begin(); it != m_ticketList.end(); ++it) {
|
|
|
|
for (it = m_ticketList.begin(); it != m_ticketList.end(); ++it) {
|
|
|
|
KerberosTicketInfo ticket = *it;
|
|
|
|
KerberosTicketInfo ticket = *it;
|
|
|
|
TQDateTime now = TQDateTime::currentDateTime();
|
|
|
|
TQDateTime now = TQDateTime::currentDateTime();
|
|
|
|
|
|
|
|
|
|
|
|
TQString label = ticket.serverPrincipal;
|
|
|
|
TQString label = ticket.serverPrincipal;
|
|
|
|
if (ticket.validEndTime > now) {
|
|
|
|
if (ticket.validEndTime > now) {
|
|
|
|
label = label + i18n("(Active)");
|
|
|
|
label = label + i18n("(Active)");
|
|
|
@ -355,7 +355,7 @@ void TopLevel::paintEvent(TQPaintEvent *) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TopLevel::timerEvent(TQTimerEvent *) {
|
|
|
|
void TopLevel::timerEvent(TQTimerEvent *) {
|
|
|
|
//
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** update ToolTip */
|
|
|
|
/** update ToolTip */
|
|
|
@ -419,7 +419,7 @@ void TopLevel::menuAction(int index) {
|
|
|
|
listText += addTicketInfo("", ticket);
|
|
|
|
listText += addTicketInfo("", ticket);
|
|
|
|
|
|
|
|
|
|
|
|
listText += "</qt>";
|
|
|
|
listText += "</qt>";
|
|
|
|
|
|
|
|
|
|
|
|
if (KMessageBox::warningYesNo(this, listText, i18n("Kerberos Ticket Information"), TQString("Destroy this Ticket"), TQString("Cancel")) == KMessageBox::Yes) {
|
|
|
|
if (KMessageBox::warningYesNo(this, listText, i18n("Kerberos Ticket Information"), TQString("Destroy this Ticket"), TQString("Cancel")) == KMessageBox::Yes) {
|
|
|
|
TQString errorstring;
|
|
|
|
TQString errorstring;
|
|
|
|
if (LDAPManager::destroyKerberosTicket(ticket.serverPrincipal, &errorstring) != 0) {
|
|
|
|
if (LDAPManager::destroyKerberosTicket(ticket.serverPrincipal, &errorstring) != 0) {
|
|
|
|