added 'relative path' option,
fixed missing browser start function, added option for using the system's default browser. git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@129 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -264,19 +264,12 @@ void KeepassEntryView::OnNewEntry(){
|
||||
}
|
||||
|
||||
void KeepassEntryView::OnEntryActivated(QTreeWidgetItem* item,int Column){
|
||||
int i=0;
|
||||
int c=-1;
|
||||
for(i;i<NUM_COLUMNS;i++){
|
||||
if(config.Columns[i])c++;
|
||||
if(c==Column)break;
|
||||
}
|
||||
if(c==-1)return;
|
||||
switch(i){
|
||||
switch(columnListIndex(Column)){
|
||||
case 0: editEntry((EntryViewItem*)item);
|
||||
break;
|
||||
case 1: OnUsernameToClipboard();
|
||||
break;
|
||||
case 2: //OnEditOpenUrl();
|
||||
case 2: OnEditOpenUrl();
|
||||
break;
|
||||
case 3: OnPasswordToClipboard();
|
||||
break;
|
||||
@@ -289,6 +282,11 @@ void KeepassEntryView::OnEditEntry(){
|
||||
editEntry((EntryViewItem*)selectedItems()[0]);
|
||||
}
|
||||
|
||||
void KeepassEntryView::OnEditOpenUrl(){
|
||||
Q_ASSERT(selectedItems().size()==1);
|
||||
openBrowser(((EntryViewItem*)selectedItems()[0])->text(logicalColIndex(2)));
|
||||
}
|
||||
|
||||
void KeepassEntryView::OnUsernameToClipboard(){
|
||||
Clipboard->setText(((EntryViewItem*)selectedItems()[0])->EntryHandle->username(), QClipboard::Clipboard);
|
||||
ClipboardTimer.setSingleShot(true);
|
||||
|
||||
@@ -94,6 +94,7 @@ class KeepassEntryView:public QTreeWidget{
|
||||
void OnAutoType();
|
||||
void removeDragItems();
|
||||
void OnColumnMoved(int LogIndex,int OldVisIndex,int NewVisIndex);
|
||||
void OnEditOpenUrl();
|
||||
signals:
|
||||
void fileModified();
|
||||
void selectionChanged(SelectionState);
|
||||
|
||||
Reference in New Issue
Block a user