|
|
|
@ -660,7 +660,7 @@ void KeepassMainWindow::updateDetailView(){ |
|
|
|
|
templ.replace("%lastmod%",entry->lastMod().toString(Qt::DefaultLocaleShortDate)); |
|
|
|
|
templ.replace("%lastaccess%",entry->lastAccess().toString(Qt::DefaultLocaleShortDate)); |
|
|
|
|
templ.replace("%expire%",entry->expire().toString(Qt::DefaultLocaleShortDate)); |
|
|
|
|
templ.replace("%comment%",entry->comment()); |
|
|
|
|
templ.replace("%comment%",entry->comment().replace("\n","<br/>")); |
|
|
|
|
templ.replace("%attachment%",entry->binaryDesc()); |
|
|
|
|
|
|
|
|
|
if(entry->expire()!=Date_Never){ |
|
|
|
@ -715,9 +715,9 @@ void KeepassMainWindow::updateDetailView(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void KeepassMainWindow::setStateEntrySelected(SelectionState s){ |
|
|
|
|
EntrySelection=s; |
|
|
|
|
if(GroupSelection == NONE || GroupSelection == SINGLE) |
|
|
|
|
switch(EntrySelection){ |
|
|
|
|
EntrySelection = s; |
|
|
|
|
if (GroupSelection == NONE || GroupSelection == SINGLE){ |
|
|
|
|
switch (EntrySelection){ |
|
|
|
|
case NONE: |
|
|
|
|
EditPasswordToClipboardAction->setEnabled(false); |
|
|
|
|
EditUsernameToClipboardAction->setEnabled(false); |
|
|
|
@ -760,10 +760,12 @@ switch(EntrySelection){ |
|
|
|
|
EditAutoTypeAction->setEnabled(false); |
|
|
|
|
#endif |
|
|
|
|
break; |
|
|
|
|
default: Q_ASSERT(false); |
|
|
|
|
} |
|
|
|
|
else if(GroupSelection == SEARCHGROUP) |
|
|
|
|
switch(EntrySelection){ |
|
|
|
|
default: |
|
|
|
|
Q_ASSERT(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if (GroupSelection == SEARCHGROUP){ |
|
|
|
|
switch(EntrySelection){ |
|
|
|
|
case NONE: |
|
|
|
|
EditUsernameToClipboardAction->setEnabled(false); |
|
|
|
|
EditPasswordToClipboardAction->setEnabled(false); |
|
|
|
@ -806,9 +808,12 @@ switch(EntrySelection){ |
|
|
|
|
EditAutoTypeAction->setEnabled(false); |
|
|
|
|
#endif |
|
|
|
|
break; |
|
|
|
|
default: Q_ASSERT(false); |
|
|
|
|
} |
|
|
|
|
else Q_ASSERT(false); |
|
|
|
|
default: |
|
|
|
|
Q_ASSERT(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
Q_ASSERT(false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|