|
|
|
@ -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){ |
|
|
|
@ -716,7 +716,7 @@ void KeepassMainWindow::updateDetailView(){ |
|
|
|
|
|
|
|
|
|
void KeepassMainWindow::setStateEntrySelected(SelectionState s){ |
|
|
|
|
EntrySelection = s; |
|
|
|
|
if(GroupSelection == NONE || GroupSelection == SINGLE) |
|
|
|
|
if (GroupSelection == NONE || GroupSelection == SINGLE){ |
|
|
|
|
switch (EntrySelection){ |
|
|
|
|
case NONE: |
|
|
|
|
EditPasswordToClipboardAction->setEnabled(false); |
|
|
|
@ -760,9 +760,11 @@ switch(EntrySelection){ |
|
|
|
|
EditAutoTypeAction->setEnabled(false); |
|
|
|
|
#endif |
|
|
|
|
break; |
|
|
|
|
default: Q_ASSERT(false); |
|
|
|
|
default: |
|
|
|
|
Q_ASSERT(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if(GroupSelection == SEARCHGROUP) |
|
|
|
|
else if (GroupSelection == SEARCHGROUP){ |
|
|
|
|
switch(EntrySelection){ |
|
|
|
|
case NONE: |
|
|
|
|
EditUsernameToClipboardAction->setEnabled(false); |
|
|
|
@ -806,9 +808,12 @@ switch(EntrySelection){ |
|
|
|
|
EditAutoTypeAction->setEnabled(false); |
|
|
|
|
#endif |
|
|
|
|
break; |
|
|
|
|
default: Q_ASSERT(false); |
|
|
|
|
default: |
|
|
|
|
Q_ASSERT(false); |
|
|
|
|
} |
|
|
|
|
else Q_ASSERT(false); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
Q_ASSERT(false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|